worldarray 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- worldarray/__init__.py +43 -0
- worldarray/array.py +935 -0
- worldarray/context.py +53 -0
- worldarray/geometry.py +173 -0
- worldarray/levels.py +147 -0
- worldarray/placement.py +739 -0
- worldarray/resample.py +229 -0
- worldarray/retry.py +76 -0
- worldarray/store.py +427 -0
- worldarray/units.py +77 -0
- worldarray-0.1.0.dist-info/METADATA +214 -0
- worldarray-0.1.0.dist-info/RECORD +14 -0
- worldarray-0.1.0.dist-info/WHEEL +4 -0
- worldarray-0.1.0.dist-info/licenses/LICENSE +28 -0
worldarray/__init__.py
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""worldarray: chunked arrays in world coordinates, through tensorstore.
|
|
2
|
+
|
|
3
|
+
Open zarr v2, zarr v3, N5 and Neuroglancer precomputed arrays and pyramids by path, know
|
|
4
|
+
where each sits (voxel size, the centre of voxel 0, units, axes), and read voxel boxes or
|
|
5
|
+
world boxes as numpy arrays, padded where the box leaves the data. ``docs/spec.md`` is the
|
|
6
|
+
contract; the README is its first five sections.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
from . import units
|
|
12
|
+
from .array import Pyramid, WorldArray, metadata, open, open_pyramid, open_tensorstore
|
|
13
|
+
from .context import capped_context, capped_context_spec, shared_context
|
|
14
|
+
from .geometry import Box, index_range
|
|
15
|
+
from .levels import select_level
|
|
16
|
+
from .placement import ArrayMeta, corner_to_centre, default_axes
|
|
17
|
+
from .retry import Retry
|
|
18
|
+
from .store import Node, detect, list_chunk_keys
|
|
19
|
+
|
|
20
|
+
__version__ = "0.1.0"
|
|
21
|
+
|
|
22
|
+
__all__ = [
|
|
23
|
+
"ArrayMeta",
|
|
24
|
+
"Box",
|
|
25
|
+
"Node",
|
|
26
|
+
"corner_to_centre",
|
|
27
|
+
"default_axes",
|
|
28
|
+
"detect",
|
|
29
|
+
"index_range",
|
|
30
|
+
"list_chunk_keys",
|
|
31
|
+
"Pyramid",
|
|
32
|
+
"Retry",
|
|
33
|
+
"WorldArray",
|
|
34
|
+
"capped_context",
|
|
35
|
+
"capped_context_spec",
|
|
36
|
+
"metadata",
|
|
37
|
+
"open",
|
|
38
|
+
"open_pyramid",
|
|
39
|
+
"open_tensorstore",
|
|
40
|
+
"select_level",
|
|
41
|
+
"shared_context",
|
|
42
|
+
"units",
|
|
43
|
+
]
|