ska_oso_pdm.schemas.common.procedures

The schemas.common.procedures defines Marshmallow schema that map the activities section of an SKA scheduling block to/from a JSON representation.

class EmbeddedScriptSchema(*args, **kwargs)[source]

Schema for an EmbeddedScript, used in the activities section of an SKA scheduling block

make_embeddedscript(data, **_)[source]

Convert parsed JSON back into a EmbeddedScript object.

class FileSystemScriptSchema(*args, **kwargs)[source]

Schema for a FileSystemScript, used in the activities section of an SKA scheduling block

make_filesystemscript(data, **_)[source]

Convert parsed JSON back into a FileSystemScript object.

class GitScriptSchema(*args, **kwargs)[source]

Schema for a GitScript, used in the activities section of an SKA scheduling block

filter_nulls(data, **_)[source]

Filter out null values from JSON.

Parameters:
  • data – Marshmallow-provided dict containing parsed object values
  • _ – kwargs passed by Marshmallow
Returns:

dict suitable for PB configuration

make_gitscript(data, **_)[source]

Convert parsed JSON back into a GitScript object.

class PythonArgumentsSchema(*args, **kwargs)[source]

Schema for the PythonArguments, used in the activities section of an SKA scheduling block

make_pythonarguments(data, **_)[source]

Convert parsed JSON back into a PythonArguments object.

class PythonProcedureSchema(*args, **kwargs)[source]

Schema for an abstract PythonProcedure, used in the activities section of anSKA scheduling block