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
samplefile
is provided invalues
, parse the file assample
.
- classmethod extract_methodfile(values)
If
methodfile
is 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:
BaseModel
The
Method
schema is completely device- andtechnique
- dependent, with extra arguments required by eachtechnique
defined 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:
BaseModel
Specification of job configuration for tomato.
- class Output(*, path: str = None, prefix: str = None)
Bases:
BaseModel
Provide the
path
andprefix
for the final FAIR-data archive of the job.- path: str
- prefix: str
- class Snapshot(*, path: str = None, prefix: str = None, frequency: int = 3600)
Bases:
BaseModel
Provide the
frequency
,path
andprefix
to 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']