necst.rx.spectrometer

class ObservingModeManager[source]

Bases: object

class ObservingMode(time: float, position: str = '', id: str = '')[source]

Bases: object

Parameters
  • time (float) –

  • position (str) –

  • id (str) –

time: float
position: str = ''
id: str = ''
enabled(time)[source]
Parameters

time (float) –

Return type

bool

set(time, position=None, id=None)[source]
Parameters
  • time (float) –

  • position (Optional[str]) –

  • id (Optional[str]) –

Return type

None

get(time)[source]
Parameters

time (float) –

Return type

ObservingMode

disable(start)[source]
Parameters

start (float) –

Return type

None

enable(start)[source]
Parameters

start (float) –

Return type

None

class SpectralData[source]

Bases: DeviceNode

NodeName = 'spectrometer'
Namespace = '/necst/OMU1P85M/rx'
change_record_frequency(msg)[source]
Parameters

msg (Sampling) –

Return type

None

change_spec_chan(msg)[source]
Parameters

msg (Binning) –

Return type

None

update_control_status(msg)[source]
Parameters

msg (ControlStatus) –

Return type

None

update_metadata(msg)[source]
Parameters

msg (Spectral) –

Return type

None

update_qlook_conf(msg)[source]
Parameters

msg (Spectral) –

Return type

None

fetch_data()[source]
Return type

None

get_data()[source]
Return type

Optional[Tuple[float, Dict[int, List[float]]]]

stream()[source]
Return type

None

record()[source]
Return type

None