nqrduck_spectrometer.model#

The model for the nqrduck-spectrometer module. This module is responsible for managing the spectrometers.

Classes

SpectrometerModel(*args, **kwargs)

The model for the spectrometer module.

class nqrduck_spectrometer.model.SpectrometerModel(*args: Any, **kwargs: Any)#

The model for the spectrometer module.

This class is responsible for managing the spectrometers.

Parameters:

module (Module) – The module that the spectrometer is connected to

active_spectrometer#

The currently active spectrometer

Type:

BaseSpectrometer

available_spectrometers#

A dictionary of all available spectrometers

Type:

dict

Signals:

spectrometer_added (BaseSpectrometer) : Signal emitted when a spectrometer is added active_spectrometer_changed (BaseSpectrometer) : Signal emitted when the active spectrometer is changed

property active_spectrometer#

The currently active spectrometer. This is the one that is currently being used.

add_spectrometers(spectrometer_module_name, module)#

Adds a spectrometer to the available spectrometers.

Parameters:
  • spectrometer_module_name (str) – The name of the spectrometer

  • module (BaseSpectrometer) – The module of the spectrometer

property available_spectrometers#

A dictionary of all available spectrometers. The key is the name of the spectrometer and the value is the module.