prsctrl.measurement.script.MeasurementScript#

class MeasurementScript(time_per_wavelength: float, offset_intervals_minutes: list[int], wavelengths: list[float] | None, energies: list[float] | None, min_DC: float = 0.08, max_DC: float = 9.95)[source]#

Bases: object

Class containing the measurement procedure. Handles things like measuring offsets.

Methods

__annotations__ = {}#
__dict__ = mappingproxy({'__module__': 'prsctrl.measurement.script', '__firstlineno__': 5, '__doc__': '\nClass containing the measurement procedure.\nHandles things like measuring offsets.\n', '__init__': <function MeasurementScript.__init__>, 'get_next_action': <function MeasurementScript.get_next_action>, 'insert_action': <function MeasurementScript.insert_action>, 'auto_add_offsets': <function MeasurementScript.auto_add_offsets>, 'auto_determine_gain': <function MeasurementScript.auto_determine_gain>, 'add_gain_adjustment_steps': <function MeasurementScript.add_gain_adjustment_steps>, '__static_attributes__': ('current_step', 'energies', 'max_DC', 'min_DC', 'offset_intervals_minutes', 'time_per_wavelength', 'wavelengths'), '__dict__': <attribute '__dict__' of 'MeasurementScript' objects>, '__weakref__': <attribute '__weakref__' of 'MeasurementScript' objects>, '__annotations__': {}})#
__firstlineno__ = 5#
__init__(time_per_wavelength: float, offset_intervals_minutes: list[int], wavelengths: list[float] | None, energies: list[float] | None, min_DC: float = 0.08, max_DC: float = 9.95)[source]#
__module__ = 'prsctrl.measurement.script'#
__static_attributes__ = ('current_step', 'energies', 'max_DC', 'min_DC', 'offset_intervals_minutes', 'time_per_wavelength', 'wavelengths')#
__weakref__#

list of weak references to the object

add_gain_adjustment_steps(wls: list[float], expectected_DC: dict[str, list[float]])[source]#
auto_add_offsets()[source]#
auto_determine_gain()[source]#
get_next_action()[source]#
insert_action(index)[source]#