nqrduck_spectrometer.controller#

The Controller for the Spectrometer Module.

Careful - this is not the base class for the spectrometer submodules, but the controller for the spectrometer module itself.

Classes

MeasurementWorker(*args, **kwargs)

Worker class to run the measurement in a separate thread.

SpectrometerController(*args, **kwargs)

This class is the controller for the spectrometer module.

class nqrduck_spectrometer.controller.MeasurementWorker(*args: Any, **kwargs: Any)#

Worker class to run the measurement in a separate thread.

run()#

Run the measurement.

class nqrduck_spectrometer.controller.SpectrometerController(*args: Any, **kwargs: Any)#

This class is the controller for the spectrometer module.

on_loading() None#

This method is called when the module is loaded.

It connects the signals from the spectrometer model to the view.

on_measurement_start() None#

This method is called when a measurement is started.

It calls the on_measurement_start method of the active spectrometer.

process_signals(key: str, value: object) None#

This method processes the signals from the nqrduck module.

It is called by the nqrduck module when a signal is emitted. It then calls the corresponding method of the spectrometer model.

Parameters:
  • key (str) – Name of the signal.

  • value (object) – Value of the signal.

start_measurement_in_thread()#

This method starts the measurement in a separate QThread.