MAJIS module#

MAJIS operations toolbox

class majis.Timeline(observations: str | Path | EventsList | EventsDict | None = None, timeline: str | Path | None = None, ca_ref: str | dict | None = None, refs: dict | str | list | None = None)[source]#

MAJIS timeline from template.

You can either append an existing timeline template or use the default one.

Warning

Some extensions (Data Validation) are not included into the exported file. This is a openpyxl limitation.

append(observations: str | Path | EventsList | EventsDict, refs: dict | str | list | None = None) None[source]#

Append ITL observations blocks.

property ca_ref: datetime#

C/A reference for relative time.

property header#

Timeline header size.

save(fout: str | Path | None = None) Path[source]#

Save MAJIS timeline.

property science: TimelineChangeLog#

Science change log.

Raises:

ValueError: – Only available for template â‰Ĩ 2.0

property version#

Template version from changelog.

majis.read_itl(fname: str | Path, refs: dict | str | list | None = None, flat: bool = False) EventsDict | list[source]#

Read ITL file.

Note

  • The blocks can be prefixed with additional instrument parameters.

  • Blocks must be continuous, ie. consecutive OBS_START and OBS_END lines should have the same instrument observation name. If not an ValueError will be raised