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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
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
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
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
18
19
20
21
22
23
24
25
class _DatasetHistoryItemV2(BaseModel):
    """
    Class for an item of `Dataset.history`.
    """

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