noctua package

Subpackages

Submodules

noctua.sequencer module

Sequencer module for Observation Blocks (OBs) in JSON format

class noctua.sequencer.Sequencer(embedded=True)[source]

Bases: object

Manage a sequence of JSON Observation Blocks (OBs)

abort_current_template()[source]

Abort the currently running template. The sequencer will pass to the following one, if any.

execute()[source]

Execute the template(s) contained in the loaded OB

interrupt(signum, frame)[source]

Intercept a CTRL+C instead of raising a KeyboardInterrupt exception in order to be able to operate on the template class, for example to modify a pause attribute or call a method.

load_file(ob_file_path_str)[source]

Load a JSON file with an OB

load_script(template_script_path, params={})[source]

Load a python file where the template is implemented

pause()[source]

Put the pause attribute in the running template to True. It will be checked in a template method.

quit()[source]

Abort the execution of the whole OB

resume()[source]

Restore the pause attribute in the template class to its original state. It will be checked in a template method.

noctua.sequencer.cli()[source]

Command line interface for sequencer

Module contents

Main package