ska_oso_scripting.functions.sb

ska_oso_scripting.functions.sb.create_sbi(sbd: ska_oso_pdm.sb_definition.SBDefinition) ska_oso_pdm.sb_definition.SBDefinition[source]

Create a Scheduling Block Instance from a Scheduling Block Definition.

Currently, an SBI is a snapshot of an SBD but with EB and PB IDs replaced.

ska_oso_scripting.functions.sb.load_sbd(path: str | PathLike) ska_oso_pdm.sb_definition.SBDefinition[source]

Load an SBDefinition from a JSON file on disk.

Parameters:

path – path to SBD.

Returns:

SBDefinition object

ska_oso_scripting.functions.sb.save_sbi(sbi: ska_oso_pdm.sb_definition.SBDefinition, path: str)[source]

Save an SBI to disk. Saves an SBI (really, an SBD but with fixed IDs) the specified path. :param sbi: SBI to serialise :param path: output file to write