tools
filter_image_list(images, filters)
¶
Compute a sublist with images that match a filter set.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
images |
list[dict[str, Any]]
|
A list of images. |
required |
filters |
Filters
|
A set of filters. |
required |
Returns:
Type | Description |
---|---|
list[dict[str, Any]]
|
List of the |
Source code in fractal_server/images/tools.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
|
find_image_by_zarr_url(*, images, zarr_url)
¶
Return a copy of the image with a given zarr_url, and its positional index.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
images |
list[dict[str, Any]]
|
List of images. |
required |
zarr_url |
str
|
Path that the returned image must have. |
required |
Returns:
Type | Description |
---|---|
Optional[ImageSearch]
|
The first image from |
Source code in fractal_server/images/tools.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
match_filter(image, filters)
¶
Find whether an image matches a filter set.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
image |
dict[str, Any]
|
A single image. |
required |
filters |
Filters
|
A set of filters. |
required |
Returns:
Type | Description |
---|---|
bool
|
Whether the image matches the filter set. |
Source code in fractal_server/images/tools.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|