Skip to content

dataset

DatasetExportV2

Bases: BaseModel

Class for Dataset export.

Attributes:

Name Type Description
name str
zarr_dir str
images list[SingleImage]
filters Filters
Source code in fractal_server/app/schemas/v2/dataset.py
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
class DatasetExportV2(BaseModel):
    """
    Class for `Dataset` export.

    Attributes:
        name:
        zarr_dir:
        images:
        filters:
    """

    name: str
    zarr_dir: str
    images: list[SingleImage]
    filters: Filters

DatasetImportV2

Bases: BaseModel

Class for Dataset import.

Attributes:

Name Type Description
name str
zarr_dir str
images list[SingleImage]
filters Filters
Source code in fractal_server/app/schemas/v2/dataset.py
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
class DatasetImportV2(BaseModel, extra=Extra.forbid):
    """
    Class for `Dataset` import.

    Attributes:
        name:
        zarr_dir:
        images:
        filters:
    """

    name: str
    zarr_dir: str
    images: list[SingleImage] = Field(default_factory=list)
    filters: Filters = Field(default_factory=Filters)

    # Validators
    @validator("zarr_dir")
    def normalize_zarr_dir(cls, v: str) -> str:
        return normalize_url(v)

_DatasetHistoryItemV2

Bases: BaseModel

Class for an item of Dataset.history.

Source code in fractal_server/app/schemas/v2/dataset.py
19
20
21
22
23
24
25
26
class _DatasetHistoryItemV2(BaseModel):
    """
    Class for an item of `Dataset.history`.
    """

    workflowtask: WorkflowTaskDumpV2
    status: WorkflowTaskStatusTypeV2
    parallelization: Optional[dict]