Skip to content

Commit 6b4ac87

Browse files
author
David Liu
committed
update test datasets to include omero data
1 parent b8d0f48 commit 6b4ac87

10 files changed

Lines changed: 199 additions & 3 deletions

File tree

testdata/datasource/zarr/ome_zarr/simple_0.4/.zattrs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,21 @@
7676
"version": "0.4",
7777
"@type": "ngff:Image"
7878
}
79-
]
79+
],
80+
"omero": {
81+
"channels": [
82+
{
83+
"label": "channelA",
84+
"color": "0000FF",
85+
"active": true,
86+
"window": { "min": 0, "max": 65535, "start": 0, "end": 1000 }
87+
},
88+
{
89+
"label": "channelB",
90+
"color": "00FF00",
91+
"active": false,
92+
"window": { "min": 0, "max": 65535, "start": 100, "end": 5000 }
93+
}
94+
]
95+
}
8096
}

testdata/datasource/zarr/ome_zarr/simple_0.5.ocdbt/d/fec48405bb5555365258cfe94824e8a9 renamed to testdata/datasource/zarr/ome_zarr/simple_0.5.ocdbt/d/da7f74200a36aec2c0d89ab7eaf465ea

7.09 KB
Binary file not shown.
Binary file not shown.
442 Bytes
Binary file not shown.

testdata/datasource/zarr/ome_zarr/simple_0.5/zarr.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,23 @@
7878
"name": "image",
7979
"@type": "ngff:Image"
8080
}
81-
]
81+
],
82+
"omero": {
83+
"channels": [
84+
{
85+
"label": "channelA",
86+
"color": "0000FF",
87+
"active": true,
88+
"window": { "min": 0, "max": 65535, "start": 0, "end": 1000 }
89+
},
90+
{
91+
"label": "channelB",
92+
"color": "00FF00",
93+
"active": false,
94+
"window": { "min": 0, "max": 65535, "start": 100, "end": 5000 }
95+
}
96+
]
97+
}
8298
}
8399
},
84100
"zarr_format": 3,

tests/datasource/metadata_snapshots/zarr/ome_zarr_simple_0.4.snapshot

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
{
22
"canonicalUrl": "http://localhost:*/datasource/zarr/ome_zarr/simple_0.4/|zarr2:",
3+
"channelMetadata": {
4+
"channels": [
5+
{
6+
"active": true,
7+
"coefficient": undefined,
8+
"color": Float32Array [
9+
0,
10+
0,
11+
1,
12+
],
13+
"label": "channelA",
14+
"range": [
15+
0,
16+
1000,
17+
],
18+
"window": [
19+
0,
20+
65535,
21+
],
22+
},
23+
{
24+
"active": false,
25+
"coefficient": undefined,
26+
"color": Float32Array [
27+
0,
28+
1,
29+
0,
30+
],
31+
"label": "channelB",
32+
"range": [
33+
100,
34+
5000,
35+
],
36+
"window": [
37+
0,
38+
65535,
39+
],
40+
},
41+
],
42+
"name": undefined,
43+
},
344
"modelTransform": {
445
"inputSpace": {
546
"bounds": {

tests/datasource/metadata_snapshots/zarr/ome_zarr_simple_0.5.ocdbt.snapshot

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
{
22
"canonicalUrl": "http://localhost:*/datasource/zarr/ome_zarr/simple_0.5.ocdbt/|ocdbt:|zarr3:",
3+
"channelMetadata": {
4+
"channels": [
5+
{
6+
"active": true,
7+
"coefficient": undefined,
8+
"color": Float32Array [
9+
0,
10+
0,
11+
1,
12+
],
13+
"label": "channelA",
14+
"range": [
15+
0,
16+
1000,
17+
],
18+
"window": [
19+
0,
20+
65535,
21+
],
22+
},
23+
{
24+
"active": false,
25+
"coefficient": undefined,
26+
"color": Float32Array [
27+
0,
28+
1,
29+
0,
30+
],
31+
"label": "channelB",
32+
"range": [
33+
100,
34+
5000,
35+
],
36+
"window": [
37+
0,
38+
65535,
39+
],
40+
},
41+
],
42+
"name": undefined,
43+
},
344
"modelTransform": {
445
"inputSpace": {
546
"bounds": {

tests/datasource/metadata_snapshots/zarr/ome_zarr_simple_0.5.snapshot

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
{
22
"canonicalUrl": "http://localhost:*/datasource/zarr/ome_zarr/simple_0.5/|zarr3:",
3+
"channelMetadata": {
4+
"channels": [
5+
{
6+
"active": true,
7+
"coefficient": undefined,
8+
"color": Float32Array [
9+
0,
10+
0,
11+
1,
12+
],
13+
"label": "channelA",
14+
"range": [
15+
0,
16+
1000,
17+
],
18+
"window": [
19+
0,
20+
65535,
21+
],
22+
},
23+
{
24+
"active": false,
25+
"coefficient": undefined,
26+
"color": Float32Array [
27+
0,
28+
1,
29+
0,
30+
],
31+
"label": "channelB",
32+
"range": [
33+
100,
34+
5000,
35+
],
36+
"window": [
37+
0,
38+
65535,
39+
],
40+
},
41+
],
42+
"name": undefined,
43+
},
344
"modelTransform": {
445
"inputSpace": {
546
"bounds": {

tests/datasource/metadata_snapshots/zarr/ome_zarr_simple_0.5.zip.snapshot

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
{
22
"canonicalUrl": "http://localhost:*/datasource/zarr/ome_zarr/simple_0.5.zip|zip:|zarr3:",
3+
"channelMetadata": {
4+
"channels": [
5+
{
6+
"active": true,
7+
"coefficient": undefined,
8+
"color": Float32Array [
9+
0,
10+
0,
11+
1,
12+
],
13+
"label": "channelA",
14+
"range": [
15+
0,
16+
1000,
17+
],
18+
"window": [
19+
0,
20+
65535,
21+
],
22+
},
23+
{
24+
"active": false,
25+
"coefficient": undefined,
26+
"color": Float32Array [
27+
0,
28+
1,
29+
0,
30+
],
31+
"label": "channelB",
32+
"range": [
33+
100,
34+
5000,
35+
],
36+
"window": [
37+
0,
38+
65535,
39+
],
40+
},
41+
],
42+
"name": undefined,
43+
},
344
"modelTransform": {
445
"inputSpace": {
546
"bounds": {

tests/datasource/test_util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function getDatasourceSnapshot(datasource: DataSource) {
4141
datasource.modelTransform,
4242
),
4343
canonicalUrl: redactUrl(datasource.canonicalUrl),
44-
...getKeys(datasource, ["canChangeModelSpaceRank"]),
44+
...getKeys(datasource, ["canChangeModelSpaceRank", "channelMetadata"]),
4545
};
4646
}
4747

0 commit comments

Comments
 (0)