necst.procedures.observations.file_based

class FileBasedObservation(record_name=None, /, **kwargs)[source]

Bases: Observation

Parameters:

record_name (Optional[str]) –

SpecParser: Type[ObservationSpec]
before_record_controls()[source]

Hook after privilege acquisition and before legacy record controls.

Return type:

None

after_record_start()[source]

Hook after recorder start and default parameter-file sidecars.

Return type:

None

before_record_stop()[source]

Hook before recorder stop in the cleanup path.

Implementations must not clear active spectral-recording setup here, because the recorder may still be running until record("stop") returns. Use after_record_stop() for deactivation that is safe only after recorder stop.

Return type:

None

after_record_stop()[source]

Hook after recorder stop in the cleanup path.

Return type:

None

allow_legacy_recording_cleanup_controls()[source]

Whether cleanup may send legacy TP/binning reset commands.

File-based spectral-recording setup observations override this to prevent legacy controls from being sent while an active setup remains uncleared after an uncertain recorder-stop failure.

Return type:

bool

allow_legacy_recording_startup_controls()[source]

Whether startup may send legacy recorder-control commands.

File-based spectral-recording setup mode overrides this after setup application so inactive CLI defaults such as ch=None or tp_mode=False are consumed without sending old recorder controls.

Return type:

bool

run(file, **kwargs)[source]
Parameters:

file (Union[PathLike, str, IO]) –

Return type:

None

class OTF(record_name=None, /, **kwargs)[source]

Bases: FileBasedObservation

Parameters:

record_name (Optional[str]) –

observation_type: str = 'OTF'
SpecParser

alias of OTFSpec

class RadioPointing(record_name=None, /, **kwargs)[source]

Bases: FileBasedObservation

Parameters:

record_name (Optional[str]) –

observation_type: str = 'RadioPointing'
SpecParser

alias of RadioPointingSpec

class PSW(record_name=None, /, **kwargs)[source]

Bases: FileBasedObservation

Parameters:

record_name (Optional[str]) –

observation_type: str = 'PSW'
SpecParser

alias of PSWSpec

class Grid(record_name=None, /, **kwargs)[source]

Bases: FileBasedObservation

Parameters:

record_name (Optional[str]) –

observation_type: str = 'Grid'
SpecParser

alias of GridSpec