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 FileSystemScriptSchema(*args: Any, **kwargs: Any)[source]

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

make_filesystemscript(data, **_)

Convert parsed JSON back into a FilesystemScript object.

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

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

filter_nulls(data, **_)

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, **_)

Convert parsed JSON back into a GitScript object.

class InlineScriptSchema(*args: Any, **kwargs: Any)[source]

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

make_embeddedscript(data, **_)

Convert parsed JSON back into a EmbeddedScript object.

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

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

make_pythonarguments(data, **_)

Convert parsed JSON back into a PythonArguments object.

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

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