Skip to content

Commit

Permalink
add back label DAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzocerrone committed Sep 6, 2024
1 parent 4361e5e commit 802c278
Show file tree
Hide file tree
Showing 8 changed files with 116 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/data/ngff_example/my_image/labels/.zattrs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"labels": []
"labels": [
"label_DAPI"
]
}
59 changes: 59 additions & 0 deletions tests/data/ngff_example/my_image/labels/label_DAPI/.zattrs
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"image-label": {
"source": {
"image": "../../"
},
"version": "0.4"
},
"multiscales": [
{
"axes": [
{
"name": "z",
"type": "space",
"unit": "micrometer"
},
{
"name": "y",
"type": "space",
"unit": "micrometer"
},
{
"name": "x",
"type": "space",
"unit": "micrometer"
}
],
"datasets": [
{
"coordinateTransformations": [
{
"scale": [
1.0,
0.65,
0.65
],
"type": "scale"
}
],
"path": "0"
},
{
"coordinateTransformations": [
{
"scale": [
1.0,
1.3,
1.3
],
"type": "scale"
}
],
"path": "1"
}
],
"name": "label_DAPI",
"version": "0.4"
}
]
}
3 changes: 3 additions & 0 deletions tests/data/ngff_example/my_image/labels/label_DAPI/.zgroup
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"zarr_format": 2
}
25 changes: 25 additions & 0 deletions tests/data/ngff_example/my_image/labels/label_DAPI/0/.zarray
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"chunks": [
1,
540,
1280
],
"compressor": {
"blocksize": 0,
"clevel": 5,
"cname": "lz4",
"id": "blosc",
"shuffle": 1
},
"dimension_separator": "/",
"dtype": "<u4",
"fill_value": 0,
"filters": null,
"order": "C",
"shape": [
1,
540,
1280
],
"zarr_format": 2
}
Binary file not shown.
25 changes: 25 additions & 0 deletions tests/data/ngff_example/my_image/labels/label_DAPI/1/.zarray
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"chunks": [
1,
270,
640
],
"compressor": {
"blocksize": 0,
"clevel": 5,
"cname": "lz4",
"id": "blosc",
"shuffle": 1
},
"dimension_separator": "/",
"dtype": "<u4",
"fill_value": 0,
"filters": null,
"order": "C",
"shape": [
1,
270,
640
],
"zarr_format": 2
}
Binary file not shown.
3 changes: 1 addition & 2 deletions tests/test_ilastik_pixel_classification_segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ def test_ilastik_pixel_classification_segmentation_task(test_data_dir):
"""
Test the ilastik_pixel_classification_segmentation task.
"""
test_data_dir = (Path(__file__).parent / "data/ngff_example/my_image").as_posix()
ilastik_model = (Path(__file__).parent / "data/pixel_classifier_2D.ilp").as_posix()
# assert False, test_data_dir
test_data_dir = Path(test_data_dir).as_posix()

ilastik_pixel_classification_segmentation(
zarr_url=test_data_dir,
Expand Down

0 comments on commit 802c278

Please sign in to comment.