Configuration

Modules that handle the data model and lstosa configuration parameters.

Options

It set the global variables shared across all the modules from the command line options. To modify them, import cliopts right after import options in the code.

Data Model

It defines the RunObj, SubrunObj, Sequence, SequenceCalibration, SequenceData objects that are used across lstosa.

Config

It reads the .cfg file containing the paths and configuration parameters. An example of this LSTOSA config file can be found in the repository sequencer.cfg.

Reference/API

osa.configs.config Module

Open the lstosa configuration file.

Functions

read_config()

Read cfg lstosa config file

osa.configs.datamodel Module

Definition of classes containing run and sequence information

Classes

RunObj([run_str, run, type, subruns, ...])

Sequence()

SequenceCalibration(r)

SequenceData(r)

Class Inheritance Diagram

digraph inheritance9b50249060 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "RunObj" [URL="api/osa.configs.datamodel.RunObj.html#osa.configs.datamodel.RunObj",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="RunObj(run_str: str = None, run: int = None, type: str = None, subruns: int = None, source_name: str = None, source_ra: float = None, source_dec: float = None, telescope: str = 'LST1', night: str = None)"]; "Sequence" [URL="api/osa.configs.datamodel.Sequence.html#osa.configs.datamodel.Sequence",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "RunObj" -> "Sequence" [arrowsize=0.5,style="setlinewidth(0.5)"]; "SequenceCalibration" [URL="api/osa.configs.datamodel.SequenceCalibration.html#osa.configs.datamodel.SequenceCalibration",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Sequence" -> "SequenceCalibration" [arrowsize=0.5,style="setlinewidth(0.5)"]; "SequenceData" [URL="api/osa.configs.datamodel.SequenceData.html#osa.configs.datamodel.SequenceData",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Sequence" -> "SequenceData" [arrowsize=0.5,style="setlinewidth(0.5)"]; }