dgbowl_schemas.tomato.payload_0_2 package
- class dgbowl_schemas.tomato.payload_0_2.Payload(*, version: Literal['0.2'], tomato: Tomato = None, sample: Sample, method: Sequence[Method])
Bases:
BaseModel- version: Literal['0.2']
- classmethod extract_samplefile(values)
If
samplefileis provided invalues, parse the file assample.
- classmethod extract_methodfile(values)
If
methodfileis provided invalues, parse the file asmethod.
- update()
Submodules
dgbowl_schemas.tomato.payload_0_2.method module
- class dgbowl_schemas.tomato.payload_0_2.method.Method(*, device: str, technique: str, **extra_data: Any)
Bases:
BaseModelThe
Methodschema is completely device- andtechnique- dependent, with extra arguments required by eachtechniquedefined by each device driver.- device: str
tag of the device within a tomato pipeline
- technique: str
name of the technique, must be listed in the capabilities of the device
dgbowl_schemas.tomato.payload_0_2.sample module
dgbowl_schemas.tomato.payload_0_2.tomato module
- class dgbowl_schemas.tomato.payload_0_2.tomato.Tomato(*, unlock_when_done: bool = False, verbosity: Literal['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'] = 'WARNING', output: Output = None, snapshot: Snapshot | None = None)
Bases:
BaseModelSpecification of job configuration for tomato.
- class Output(*, path: str = None, prefix: str = None)
Bases:
BaseModelProvide the
pathandprefixfor the final FAIR-data archive of the job.- path: str
- prefix: str
- class Snapshot(*, path: str = None, prefix: str = None, frequency: int = 3600)
Bases:
BaseModelProvide the
frequency,pathandprefixto configure the snapshotting functionality of tomato.- path: str
- prefix: str
- frequency: int
- unlock_when_done: bool
set pipeline as ready when job finishes successfully
- verbosity: Literal['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']