|
21 | 21 |
|
22 | 22 | import numpy as np |
23 | 23 | import SimpleITK as sitk |
24 | | -from aind_anatomical_utils.anatomical_volume import ( |
25 | | - AnatomicalHeader, |
26 | | - fix_corner_compute_origin, |
27 | | -) |
28 | | -from aind_anatomical_utils.coordinate_systems import _OPPOSITE_AXES |
29 | 24 | from aind_registration_utils.ants import ( |
30 | 25 | apply_ants_transforms_to_point_arr, |
31 | 26 | ) |
32 | 27 | from numpy.typing import NDArray |
33 | | -from packaging.version import Version |
34 | 28 |
|
35 | 29 | from aind_zarr_utils.annotations import annotation_indices_to_anatomical |
36 | 30 | from aind_zarr_utils.formats.swc import swc_data_to_indices |
37 | | -from aind_zarr_utils.io.metadata import _unit_conversion as _unit_conversion # noqa: F401 # legacy re-export |
| 31 | + |
| 32 | +# The implementations of _pipeline_anatomical_check_args, |
| 33 | +# _apply_pipeline_overlays_to_header, and _mimic_pipeline_anatomical_header |
| 34 | +# moved to ``aind_zarr_utils.image`` in commit C4. They are re-exported here |
| 35 | +# (along with _build_pipeline_header, the new name for the third) so existing |
| 36 | +# callers and test patches keep working. |
| 37 | +from aind_zarr_utils.image import ( |
| 38 | + _apply_pipeline_overlays_to_header as _apply_pipeline_overlays_to_header, |
| 39 | +) |
| 40 | +from aind_zarr_utils.image import ( |
| 41 | + _build_pipeline_header as _build_pipeline_header, |
| 42 | +) |
| 43 | +from aind_zarr_utils.image import ( |
| 44 | + _build_pipeline_header as _mimic_pipeline_anatomical_header, |
| 45 | +) |
| 46 | +from aind_zarr_utils.image import ( |
| 47 | + _pipeline_anatomical_check_args as _pipeline_anatomical_check_args, |
| 48 | +) |
| 49 | +from aind_zarr_utils.image import ( |
| 50 | + apply_pipeline_overlays as apply_pipeline_overlays, |
| 51 | +) |
| 52 | +from aind_zarr_utils.io.metadata import _unit_conversion as _unit_conversion # legacy re-export |
38 | 53 |
|
39 | 54 | # Re-exported from io/* so existing test patches (and downstream imports) |
40 | 55 | # continue to find these names at ``aind_zarr_utils.pipeline_transformed.*``. |
|
105 | 120 | ) |
106 | 121 | from aind_zarr_utils.pipeline_domain_selector import ( |
107 | 122 | OverlaySelector, |
108 | | - apply_overlays, |
109 | | - estimate_pipeline_multiscale, |
110 | 123 | get_selector, |
111 | 124 | ) |
112 | 125 | from aind_zarr_utils.zarr import ( |
113 | 126 | zarr_to_ants, |
114 | 127 | zarr_to_sitk, |
115 | | - zarr_to_sitk_stub, |
116 | 128 | ) |
117 | 129 |
|
118 | 130 | if TYPE_CHECKING: |
|
123 | 135 | T = TypeVar("T", int, float) |
124 | 136 |
|
125 | 137 |
|
126 | | -# The implementations of _pipeline_anatomical_check_args, |
127 | | -# _apply_pipeline_overlays_to_header, and _mimic_pipeline_anatomical_header |
128 | | -# moved to ``aind_zarr_utils.image`` in commit C4. They are re-exported here |
129 | | -# (along with _build_pipeline_header, the new name for the third) so existing |
130 | | -# callers and test patches keep working. |
131 | | -from aind_zarr_utils.image import ( |
132 | | - _apply_pipeline_overlays_to_header as _apply_pipeline_overlays_to_header, |
133 | | -) |
134 | | -from aind_zarr_utils.image import ( |
135 | | - _build_pipeline_header as _build_pipeline_header, |
136 | | -) |
137 | | -from aind_zarr_utils.image import ( |
138 | | - _build_pipeline_header as _mimic_pipeline_anatomical_header, |
139 | | -) |
140 | | -from aind_zarr_utils.image import ( |
141 | | - _pipeline_anatomical_check_args as _pipeline_anatomical_check_args, |
142 | | -) |
143 | | -from aind_zarr_utils.image import ( |
144 | | - apply_pipeline_overlays as apply_pipeline_overlays, |
145 | | -) |
146 | | - |
147 | | - |
148 | 138 | def base_and_pipeline_anatomical_stub( |
149 | 139 | zarr_uri: str, |
150 | 140 | metadata: dict, |
|
0 commit comments