Skip to content

Commit d8a5ed8

Browse files
committed
updates
1 parent c67ac46 commit d8a5ed8

File tree

4 files changed

+401
-2
lines changed

4 files changed

+401
-2
lines changed

__init__.py

Whitespace-only changes.

convert_to_ngff.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
import itertools
1717
from pathlib import Path
1818
import glob, zarr
19-
from ome_zarr_io.ngff.multiscales import Pyramid, Multimeta
20-
from ome_zarr_io.base.readers import ImageReader
19+
from zarr_parallel_processing.multiscales import Multimeta
2120
from typing import Callable, Any
2221
from collections import defaultdict
2322

defaults.py

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
2+
default_axes = 'tczyx'
3+
4+
unit_map = {
5+
't': 'Frame',
6+
'c': 'Channel',
7+
'z': 'Slice',
8+
'y': 'Pixel',
9+
'x': 'Pixel'
10+
}
11+
12+
scale_factor_map = {
13+
't': 1,
14+
'c': 1,
15+
'z': 1,
16+
'y': 2,
17+
'x': 2
18+
}
19+
20+
scale_map = {
21+
't': 1,
22+
'c': 1,
23+
'z': 1,
24+
'y': 1,
25+
'x': 1
26+
}
27+
28+
type_map = {
29+
't': 'time',
30+
'c': 'channel',
31+
'z': 'space',
32+
'y': 'space',
33+
'x': 'space'
34+
}
35+
36+
datasets_archetype = {
37+
'0': {
38+
'array': None,
39+
'axis_order': None,
40+
'scale': None,
41+
'unit_list': None,
42+
'chunks': None,
43+
'dtype': None
44+
},
45+
'1': {
46+
'array': None,
47+
'axis_order': None,
48+
'scale': None,
49+
'unit_list': None,
50+
'chunks': None,
51+
'dtype': None
52+
}
53+
}
54+
55+
NotMultiscalesException = Exception('Not applicable as this group is not a single image or label.')
56+
NotImageException = Exception('Not applicable as this group is not an image.')
57+
AxisNotFoundException = Exception('Axis information not provided in the metadata.')
58+
59+
TempDir = '/tmp/OME-Zarr'
60+
61+
refpath = '0'
62+
63+
rechunker_maxmem = '1G'
64+
65+
array_meta_keys = ['chunks', 'shape', 'compressor', 'dtype', 'dimension_separator']
66+

0 commit comments

Comments
 (0)