tiamat-python 0.1.8__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.
@@ -0,0 +1,197 @@
1
+ """
2
+ Transformers that change the output view
3
+ """
4
+
5
+ import numpy as np
6
+
7
+ from ..io import ImageAccessor
8
+ from ..metadata import ImageMetadata
9
+ from .protocol import Transformer
10
+
11
+
12
+ class BoundingBoxTransformer(Transformer):
13
+ """
14
+ Crop images to a defined bounding box along x, y, and optionally z axes.
15
+
16
+ The bounding box is applied to the accessor, metadata, and image.
17
+ Missing regions are optionally padded with the accessor's `fill_value`.
18
+ """
19
+
20
+ def __init__(
21
+ self,
22
+ bounds_x: tuple[int | float | None, int | float | None] | int = None,
23
+ bounds_y: tuple[int | float | None, int | float | None] | int = None,
24
+ bounds_z: tuple[int | float | None, int | float | None] | int = None,
25
+ ):
26
+ """
27
+ Initialize a bounding box transformer.
28
+
29
+ Args:
30
+ bounds_x: Bounding box along the x-axis (tuple or single int).
31
+ bounds_y: Bounding box along the y-axis (tuple or single int).
32
+ bounds_z: Bounding box along the z-axis (tuple or single int), if present.
33
+ """
34
+ self.bounds_x = bounds_x
35
+ self.bounds_y = bounds_y
36
+ self.bounds_z = bounds_z
37
+
38
+ @staticmethod
39
+ def crop_coordinate(coord_slice, bounds_slice, image_dimension, coord_scale: float = 1.0):
40
+ """
41
+ Compute the cropped coordinate range and residual padding.
42
+
43
+ Args:
44
+ coord_slice: Original coordinate slice of the accessor.
45
+ bounds_slice: Bounding box slice to crop into.
46
+ image_dimension: Dimension length of the image.
47
+ coord_scale: Scaling factor for coordinates.
48
+
49
+ Returns:
50
+ A tuple of:
51
+ - (out_from, out_to): Cropped coordinate interval.
52
+ - (res_from, res_to): Residual padding needed for reconstruction.
53
+ """
54
+ import math
55
+
56
+ from tiamat.readers.processing import prepare_coordinate
57
+ from tiamat.transformers.coordinates import get_coordinate_bounds
58
+
59
+ # Here image_scale=coord_scale scales bounds to slice scale
60
+ bounds_slice = prepare_coordinate(bounds_slice, image_scale=coord_scale)
61
+ bounds_from, bounds_to = get_coordinate_bounds(bounds_slice, math.ceil(image_dimension * coord_scale))
62
+
63
+ coord_slice = prepare_coordinate(coord_slice)
64
+ coord_from, coord_to = get_coordinate_bounds(coord_slice, bounds_to)
65
+
66
+ out_from, out_to = max(coord_from + bounds_from, bounds_from), min(coord_to + bounds_from, bounds_to)
67
+ res_from = max(-coord_from, 0)
68
+ res_to = max(coord_to + bounds_from - bounds_to, 0)
69
+
70
+ return (out_from, out_to), (res_from, res_to)
71
+
72
+ @staticmethod
73
+ def get_coordinate_shape(coord, image_dimension, coord_scale: float = 1.0, image_scale: float = 1.0) -> int:
74
+ """
75
+ Compute the length of a coordinate slice.
76
+
77
+ Args:
78
+ coord: Coordinate slice or index.
79
+ image_dimension: Dimension length of the image.
80
+ coord_scale: Scale of the coordinate system.
81
+ image_scale: Scale of the image.
82
+
83
+ Returns:
84
+ Length of the coordinate slice.
85
+ """
86
+ import math
87
+
88
+ from tiamat.readers.processing import prepare_coordinate
89
+ from tiamat.transformers.coordinates import resolve_coordinate_slice
90
+
91
+ coord_slice = prepare_coordinate(coord, image_scale, coord_scale)
92
+ coord_from, coord_to = resolve_coordinate_slice(coord_slice, math.ceil(image_scale * image_dimension))
93
+
94
+ coord_shape = coord_to - coord_from
95
+
96
+ return coord_shape
97
+
98
+ def bounds_spatial_shape(self, spatial_shape: tuple[int, ...]) -> tuple[int, ...]:
99
+ """
100
+ Compute the new spatial shape after applying the bounding box.
101
+
102
+ Args:
103
+ spatial_shape: Original spatial shape of the image.
104
+
105
+ Returns:
106
+ Cropped spatial shape.
107
+ """
108
+ bounds = (self.bounds_y, self.bounds_x)
109
+ if len(spatial_shape) > 2:
110
+ bounds = (self.bounds_z, *bounds)
111
+ shape = tuple(
112
+ BoundingBoxTransformer.get_coordinate_shape(bounds[i], spatial_shape[i]) for i in range(len(spatial_shape))
113
+ )
114
+ return shape
115
+
116
+ def transform_access(self, accessor: ImageAccessor, metadata: ImageMetadata) -> ImageAccessor:
117
+ """
118
+ Apply bounding box cropping to the accessor.
119
+
120
+ Args:
121
+ accessor: The input accessor.
122
+ metadata: The metadata.
123
+
124
+ Returns:
125
+ Updated accessor cropped to the bounding box.
126
+ """
127
+ from dataclasses import replace
128
+
129
+ assert metadata.shape is not None, "BoundingBoxTransformer requires metadata.shape."
130
+
131
+ accessor = replace(accessor)
132
+
133
+ spatial_shape = self.bounds_spatial_shape(metadata.spatial_shape)
134
+
135
+ accessor.x, residual_x = BoundingBoxTransformer.crop_coordinate(
136
+ accessor.x,
137
+ self.bounds_x,
138
+ spatial_shape[-1],
139
+ coord_scale=accessor.coordinate_scale,
140
+ )
141
+ accessor.y, residual_y = BoundingBoxTransformer.crop_coordinate(
142
+ accessor.y,
143
+ self.bounds_y,
144
+ spatial_shape[-2],
145
+ coord_scale=accessor.coordinate_scale,
146
+ )
147
+ residuals = [residual_x, residual_y]
148
+ if len(spatial_shape) > 2:
149
+ accessor.z, residual_z = BoundingBoxTransformer.crop_coordinate(
150
+ accessor.z,
151
+ self.bounds_z,
152
+ spatial_shape[-3],
153
+ coord_scale=accessor.coordinate_scale,
154
+ )
155
+ residuals.append(residual_z)
156
+
157
+ accessor.history[id(self)] = residuals[::-1]
158
+
159
+ return accessor
160
+
161
+ def transform_metadata(self, metadata: ImageMetadata) -> ImageMetadata:
162
+ """
163
+ Update metadata shape to reflect bounding box cropping.
164
+
165
+ Args:
166
+ metadata: The input metadata.
167
+
168
+ Returns:
169
+ Updated metadata with new shape.
170
+ """
171
+ from dataclasses import replace
172
+
173
+ spatial_shape = list(self.bounds_spatial_shape(metadata.spatial_shape))
174
+
175
+ # create the new shape by copying the new spatial shape, but keeping the channels
176
+ shape = list(metadata.shape)
177
+ for i, dimension in enumerate(metadata.spatial_dimensions):
178
+ shape[dimension] = spatial_shape[i]
179
+ shape = tuple(shape)
180
+
181
+ metadata = replace(metadata, shape=shape)
182
+
183
+ return metadata
184
+
185
+ def transform_image(self, image: np.ndarray, metadata: ImageMetadata, accessor: ImageAccessor) -> np.ndarray:
186
+ """Crop image and apply padding if necessary."""
187
+ residuals = accessor.history[id(self)]
188
+
189
+ # Revert cropping from crop_coordinate with fill value padding
190
+ if accessor.fill_value is not None:
191
+ if any(any(p > 0 for p in pad) for pad in residuals):
192
+ padding = [(0, 0) for _ in range(len(metadata.dimensions))]
193
+ for i, dimension in enumerate(metadata.spatial_dimensions):
194
+ padding[dimension] = residuals[i]
195
+ image = np.pad(image, padding, constant_values=accessor.fill_value)
196
+
197
+ return image
@@ -0,0 +1,382 @@
1
+ Metadata-Version: 2.4
2
+ Name: tiamat-python
3
+ Version: 0.1.8
4
+ Summary: Tiled Image Access, Manipulation, and Analysis Toolkit
5
+ Author-email: INM-1/FZJ <inm1@fz-juelich.de>
6
+ License:
7
+ Apache License
8
+ Version 2.0, January 2004
9
+ http://www.apache.org/licenses/
10
+
11
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
12
+
13
+ 1. Definitions.
14
+
15
+ "License" shall mean the terms and conditions for use, reproduction,
16
+ and distribution as defined by Sections 1 through 9 of this document.
17
+
18
+ "Licensor" shall mean the copyright owner or entity authorized by
19
+ the copyright owner that is granting the License.
20
+
21
+ "Legal Entity" shall mean the union of the acting entity and all
22
+ other entities that control, are controlled by, or are under common
23
+ control with that entity. For the purposes of this definition,
24
+ "control" means (i) the power, direct or indirect, to cause the
25
+ direction or management of such entity, whether by contract or
26
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
27
+ outstanding shares, or (iii) beneficial ownership of such entity.
28
+
29
+ "You" (or "Your") shall mean an individual or Legal Entity
30
+ exercising permissions granted by this License.
31
+
32
+ "Source" form shall mean the preferred form for making modifications,
33
+ including but not limited to software source code, documentation
34
+ source, and configuration files.
35
+
36
+ "Object" form shall mean any form resulting from mechanical
37
+ transformation or translation of a Source form, including but
38
+ not limited to compiled object code, generated documentation,
39
+ and conversions to other media types.
40
+
41
+ "Work" shall mean the work of authorship, whether in Source or
42
+ Object form, made available under the License, as indicated by a
43
+ copyright notice that is included in or attached to the work
44
+ (an example is provided in the Appendix below).
45
+
46
+ "Derivative Works" shall mean any work, whether in Source or Object
47
+ form, that is based on (or derived from) the Work and for which the
48
+ editorial revisions, annotations, elaborations, or other modifications
49
+ represent, as a whole, an original work of authorship. For the purposes
50
+ of this License, Derivative Works shall not include works that remain
51
+ separable from, or merely link (or bind by name) to the interfaces of,
52
+ the Work and Derivative Works thereof.
53
+
54
+ "Contribution" shall mean any work of authorship, including
55
+ the original version of the Work and any modifications or additions
56
+ to that Work or Derivative Works thereof, that is intentionally
57
+ submitted to Licensor for inclusion in the Work by the copyright owner
58
+ or by an individual or Legal Entity authorized to submit on behalf of
59
+ the copyright owner. For the purposes of this definition, "submitted"
60
+ means any form of electronic, verbal, or written communication sent
61
+ to the Licensor or its representatives, including but not limited to
62
+ communication on electronic mailing lists, source code control systems,
63
+ and issue tracking systems that are managed by, or on behalf of, the
64
+ Licensor for the purpose of discussing and improving the Work, but
65
+ excluding communication that is conspicuously marked or otherwise
66
+ designated in writing by the copyright owner as "Not a Contribution."
67
+
68
+ "Contributor" shall mean Licensor and any individual or Legal Entity
69
+ on behalf of whom a Contribution has been received by Licensor and
70
+ subsequently incorporated within the Work.
71
+
72
+ 2. Grant of Copyright License. Subject to the terms and conditions of
73
+ this License, each Contributor hereby grants to You a perpetual,
74
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
75
+ copyright license to reproduce, prepare Derivative Works of,
76
+ publicly display, publicly perform, sublicense, and distribute the
77
+ Work and such Derivative Works in Source or Object form.
78
+
79
+ 3. Grant of Patent License. Subject to the terms and conditions of
80
+ this License, each Contributor hereby grants to You a perpetual,
81
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
82
+ (except as stated in this section) patent license to make, have made,
83
+ use, offer to sell, sell, import, and otherwise transfer the Work,
84
+ where such license applies only to those patent claims licensable
85
+ by such Contributor that are necessarily infringed by their
86
+ Contribution(s) alone or by combination of their Contribution(s)
87
+ with the Work to which such Contribution(s) was submitted. If You
88
+ institute patent litigation against any entity (including a
89
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
90
+ or a Contribution incorporated within the Work constitutes direct
91
+ or contributory patent infringement, then any patent licenses
92
+ granted to You under this License for that Work shall terminate
93
+ as of the date such litigation is filed.
94
+
95
+ 4. Redistribution. You may reproduce and distribute copies of the
96
+ Work or Derivative Works thereof in any medium, with or without
97
+ modifications, and in Source or Object form, provided that You
98
+ meet the following conditions:
99
+
100
+ (a) You must give any other recipients of the Work or
101
+ Derivative Works a copy of this License; and
102
+
103
+ (b) You must cause any modified files to carry prominent notices
104
+ stating that You changed the files; and
105
+
106
+ (c) You must retain, in the Source form of any Derivative Works
107
+ that You distribute, all copyright, patent, trademark, and
108
+ attribution notices from the Source form of the Work,
109
+ excluding those notices that do not pertain to any part of
110
+ the Derivative Works; and
111
+
112
+ (d) If the Work includes a "NOTICE" text file as part of its
113
+ distribution, then any Derivative Works that You distribute must
114
+ include a readable copy of the attribution notices contained
115
+ within such NOTICE file, excluding those notices that do not
116
+ pertain to any part of the Derivative Works, in at least one
117
+ of the following places: within a NOTICE text file distributed
118
+ as part of the Derivative Works; within the Source form or
119
+ documentation, if provided along with the Derivative Works; or,
120
+ within a display generated by the Derivative Works, if and
121
+ wherever such third-party notices normally appear. The contents
122
+ of the NOTICE file are for informational purposes only and
123
+ do not modify the License. You may add Your own attribution
124
+ notices within Derivative Works that You distribute, alongside
125
+ or as an addendum to the NOTICE text from the Work, provided
126
+ that such additional attribution notices cannot be construed
127
+ as modifying the License.
128
+
129
+ You may add Your own copyright statement to Your modifications and
130
+ may provide additional or different license terms and conditions
131
+ for use, reproduction, or distribution of Your modifications, or
132
+ for any such Derivative Works as a whole, provided Your use,
133
+ reproduction, and distribution of the Work otherwise complies with
134
+ the conditions stated in this License.
135
+
136
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
137
+ any Contribution intentionally submitted for inclusion in the Work
138
+ by You to the Licensor shall be under the terms and conditions of
139
+ this License, without any additional terms or conditions.
140
+ Notwithstanding the above, nothing herein shall supersede or modify
141
+ the terms of any separate license agreement you may have executed
142
+ with Licensor regarding such Contributions.
143
+
144
+ 6. Trademarks. This License does not grant permission to use the trade
145
+ names, trademarks, service marks, or product names of the Licensor,
146
+ except as required for reasonable and customary use in describing the
147
+ origin of the Work and reproducing the content of the NOTICE file.
148
+
149
+ 7. Disclaimer of Warranty. Unless required by applicable law or
150
+ agreed to in writing, Licensor provides the Work (and each
151
+ Contributor provides its Contributions) on an "AS IS" BASIS,
152
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
153
+ implied, including, without limitation, any warranties or conditions
154
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
155
+ PARTICULAR PURPOSE. You are solely responsible for determining the
156
+ appropriateness of using or redistributing the Work and assume any
157
+ risks associated with Your exercise of permissions under this License.
158
+
159
+ 8. Limitation of Liability. In no event and under no legal theory,
160
+ whether in tort (including negligence), contract, or otherwise,
161
+ unless required by applicable law (such as deliberate and grossly
162
+ negligent acts) or agreed to in writing, shall any Contributor be
163
+ liable to You for damages, including any direct, indirect, special,
164
+ incidental, or consequential damages of any character arising as a
165
+ result of this License or out of the use or inability to use the
166
+ Work (including but not limited to damages for loss of goodwill,
167
+ work stoppage, computer failure or malfunction, or any and all
168
+ other commercial damages or losses), even if such Contributor
169
+ has been advised of the possibility of such damages.
170
+
171
+ 9. Accepting Warranty or Additional Liability. While redistributing
172
+ the Work or Derivative Works thereof, You may choose to offer,
173
+ and charge a fee for, acceptance of support, warranty, indemnity,
174
+ or other liability obligations and/or rights consistent with this
175
+ License. However, in accepting such obligations, You may act only
176
+ on Your own behalf and on Your sole responsibility, not on behalf
177
+ of any other Contributor, and only if You agree to indemnify,
178
+ defend, and hold each Contributor harmless for any liability
179
+ incurred by, or claims asserted against, such Contributor by reason
180
+ of your accepting any such warranty or additional liability.
181
+
182
+ END OF TERMS AND CONDITIONS
183
+
184
+ APPENDIX: How to apply the Apache License to your work.
185
+
186
+ To apply the Apache License to your work, attach the following
187
+ boilerplate notice, with the fields enclosed by brackets "[]"
188
+ replaced with your own identifying information. (Don't include
189
+ the brackets!) The text should be enclosed in the appropriate
190
+ comment syntax for the file format. We also recommend that a
191
+ file or class name and description of purpose be included on the
192
+ same "printed page" as the copyright notice for easier
193
+ identification within third-party archives.
194
+
195
+ Copyright 2023 Forschungszentrum Juelich, Institute of Neuroscience and Medicine (INM-1)
196
+
197
+ Licensed under the Apache License, Version 2.0 (the "License");
198
+ you may not use this file except in compliance with the License.
199
+ You may obtain a copy of the License at
200
+
201
+ http://www.apache.org/licenses/LICENSE-2.0
202
+
203
+ Unless required by applicable law or agreed to in writing, software
204
+ distributed under the License is distributed on an "AS IS" BASIS,
205
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
206
+ See the License for the specific language governing permissions and
207
+ limitations under the License.
208
+
209
+ Project-URL: homepage, https://www.fz-juelich.de/de/inm/inm-1
210
+ Project-URL: documentation, https://jugit.fz-juelich.de/inm-1/bda/software/data_access/tiamat/tiamat/-/blob/master/README.md?ref_type=heads
211
+ Project-URL: repository, https://jugit.fz-juelich.de/inm-1/bda/software/data_access/tiamat/tiamat
212
+ Classifier: Programming Language :: Python :: 3
213
+ Classifier: Programming Language :: Python :: 3 :: Only
214
+ Classifier: Programming Language :: Python :: 3.10
215
+ Classifier: Programming Language :: Python :: 3.11
216
+ Classifier: Programming Language :: Python :: 3.12
217
+ Classifier: License :: OSI Approved :: MIT License
218
+ Classifier: Operating System :: POSIX :: Linux
219
+ Classifier: Topic :: Scientific/Engineering
220
+ Requires-Python: >=3.10
221
+ Description-Content-Type: text/markdown
222
+ License-File: LICENSE
223
+ Requires-Dist: click
224
+ Requires-Dist: numpy>=1.25.0
225
+ Requires-Dist: matplotlib
226
+ Requires-Dist: opencv-python-headless>=4.8.1
227
+ Requires-Dist: imageio
228
+ Requires-Dist: nibabel
229
+ Requires-Dist: scipy
230
+ Provides-Extra: dev
231
+ Requires-Dist: autopep8; extra == "dev"
232
+ Requires-Dist: flake8; extra == "dev"
233
+ Requires-Dist: pre-commit; extra == "dev"
234
+ Requires-Dist: pytest; extra == "dev"
235
+ Provides-Extra: zarr
236
+ Requires-Dist: zarr; extra == "zarr"
237
+ Dynamic: license-file
238
+
239
+ <p align="center">
240
+ <img src="https://jugit.fz-juelich.de/inm-1/bda/software/data_access/tiamat/tiamat/-/raw/develop/assets/logo512.png" width="128" />
241
+ </p>
242
+
243
+ <h1 align="center">tiamat</h1>
244
+ <h3 align="center">Tiled Image Access, Manipulation, and Analysis Toolkit</h3>
245
+
246
+ ---
247
+
248
+ **tiamat** is a modular Python toolkit for accessing, transforming, and exposing large scientific image datasets.
249
+ It provides a flexible, pluggable pipeline model that separates data access (readers), transformation (transformers), and delivery (interfaces) — allowing on-the-fly, tool-agnostic image workflows without data duplication or format conversion.
250
+
251
+ Supported outputs include NumPy arrays, Napari, Neuroglancer, OpenSeadragon, and FUSE-mounted virtual filesystems.
252
+
253
+ ---
254
+
255
+ ## 📑 Table of Contents
256
+
257
+ 1. [Quick Start](#-quick-start)
258
+ 2. [Installation](#-installation)
259
+ 3. [Core Concepts](#-core-concepts)
260
+ 4. [Examples](#-examples)
261
+ 5. [Development Guidelines](#-development-guidelines)
262
+ 6. [Contributing](#-contributing)
263
+ 7. [Data](#-data)
264
+ 8. [Acknowledgements](#-acknowledgements)
265
+ 9. [Contributors](#-contributors)
266
+ 10. [License](#-license)
267
+
268
+ ---
269
+
270
+ ## 🚀 Quick Start
271
+
272
+ ```python
273
+ from tiamat import Pipeline
274
+ from tiamat.io import ImageAccessor
275
+ from tiamat.transformers import FractionalTransformer, LUTTransformer
276
+
277
+ # Create a pipeline with fractional coordinate access and a rainbow colormap
278
+ pipeline = Pipeline(
279
+ access_transformers=[FractionalTransformer()],
280
+ image_transformers=[LUTTransformer(colormap="rainbow")]
281
+ )
282
+
283
+ # Request the central 50% of the image
284
+ accessor = ImageAccessor(x=(0.25, 0.75), y=(0.25, 0.75))
285
+ result = pipeline("example_image.tif", accessor=accessor)
286
+
287
+ # Get the transformed NumPy image and metadata
288
+ image = result.image
289
+ metadata = result.metadata
290
+ ```
291
+
292
+ ---
293
+
294
+ ## 📦 Installation
295
+
296
+ Install the latest development version directly from GitLab:
297
+
298
+ ```bash
299
+ pip install git+https://jugit.fz-juelich.de/inm-1/bda/software/data_access/tiamat/tiamat
300
+ ```
301
+
302
+ ---
303
+
304
+ ## 🧠 Core Concepts
305
+
306
+ Tiamat defines a modular pipeline composed of:
307
+
308
+ - **Readers**: Load image data from formats like TIFF, NIfTI, HDF5, or memory arrays.
309
+ - **Transformers**: Apply dynamic, on-the-fly transformations (e.g., colormaps, axis reordering, tiling).
310
+ - **Interfaces**: Serve data to tools like Napari, Neuroglancer, OpenSeadragon, or directly as arrays.
311
+
312
+ This decoupled architecture allows you to:
313
+
314
+ - Build pipelines from reusable components
315
+ - Extend with custom readers or transformers
316
+ - Avoid costly format conversions
317
+
318
+ ---
319
+
320
+ ## 📁 Examples
321
+
322
+ See the [`examples/`](./examples) directory for usage demonstrations and pipeline configurations.
323
+
324
+ ---
325
+
326
+ ## 🛠️ Development Guidelines
327
+
328
+ - Follow [PEP 561](https://peps.python.org/pep-0561/) type hinting
329
+ - Use [Google-style docstrings](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings)
330
+ - Formatting: `flake8` with line length 120
331
+ - Tests: `pytest` unit tests
332
+ - Feature development follows `git-flow`
333
+
334
+ ### pypi publication
335
+
336
+ **Note:** Preliminary instructions until publication is automated.
337
+
338
+ 1. Make sure the repository is clean (no unstaged changes).
339
+ 2. Make sure your pypi or test.pypi credentials are configured in `~/.pypirc`.
340
+ 3. Make sure the current commit has a version tag, e.g. `git tag v0.1.8`
341
+ 4. `python -m build`
342
+ 5. `twine check dist/*`
343
+ 6. `python -m venv .venv-test; source .venv-test/bin/activate; pip install dist/*.whl; python -c "import tiamat; print(tiamat.__version__)"; deactive; rm -rf .venv-test`
344
+ 7. `twine upload --repository testpypi dist/*`
345
+
346
+ ---
347
+
348
+ ## 🤝 Contributing
349
+
350
+ We welcome contributions!
351
+
352
+ - Fork the repository and work on a feature branch.
353
+ - Submit a **Merge Request (MR) into `develop`**.
354
+ - All contributions are reviewed and tested before merging.
355
+
356
+ This project follows the [git-flow workflow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow).
357
+ Releases are merged into `master` from `develop` on a regular basis.
358
+
359
+ ---
360
+
361
+ ## 📂 Data
362
+
363
+ Some test and example datasets require `git-lfs` for download.
364
+
365
+ ---
366
+
367
+ ## 👥 Contributors
368
+
369
+ - Forschungszentrum Jülich, Institute of Neuroscience and Medicine (INM-1)
370
+ - Community contributors via GitLab merge requests
371
+
372
+ ---
373
+
374
+ ## 📄 License
375
+
376
+ Apache 2.0 – see [LICENSE](./LICENSE) for details.
377
+
378
+ ---
379
+
380
+ ## 🙏 Acknowledgements
381
+
382
+ This project has received funding from the Helmholtz Association’s Initiative and Networking Fund through the Helmholtz International BigBrain Analytics and Learning Laboratory (HIBALL) under the Helmholtz International Lab grant agreement InterLabs-0015.
@@ -0,0 +1,39 @@
1
+ tiamat/__init__.py,sha256=Cpx-qe0lXCtbFyS50ghg85m-pLJSXfxIUGghAFz34do,115
2
+ tiamat/array.py,sha256=fQgORBq0iAvBUfmQ130eusRTzWlFW1gjTvfel-hKY6c,7347
3
+ tiamat/cache.py,sha256=gYT9szOyW32tP_hVzEdRB64BLa1CvMytAjiXHI1NTYs,3977
4
+ tiamat/cli.py,sha256=SvY6LCAoOX3Owf9zgJbrp2AU_UlMMX8YfiOHdwObRR0,178
5
+ tiamat/constants.py,sha256=3Kdke8u9sEj09Ir3b8WWL2jHOTwi60zte0YenrQTyz0,975
6
+ tiamat/errors.py,sha256=e65Ioizqfnx-fCkEYhtgYl30zfGdKCsIN27Bzhk_WOg,496
7
+ tiamat/io.py,sha256=5z96FWIMZA-ebR7yZ6K1M8xfqsf9S6FC99d5swALtOA,2994
8
+ tiamat/pipeline.py,sha256=py5WfZwCsQ5HkgrIpg57o6tfsFaOmZLw3V4PgW8-XYw,5909
9
+ tiamat/serialization.py,sha256=i1riA5TQDp_CMUTbO684Bbqb_HQsFf3-pVvrVSkLwN8,4900
10
+ tiamat/metadata/__init__.py,sha256=b0b5auMaB8N9WSlVRLF3NQDHdCQnnduNLW7Kxz_CKds,82
11
+ tiamat/metadata/dimensions.py,sha256=32uqWxJ41MC4WHikXFXwdLnt-DW6p1H1R1hTx-Ifryc,524
12
+ tiamat/metadata/metadata.py,sha256=lQLn5tFIMyy1tbmYQcwnEV1iEdS7ohm5SNziQxxUBYU,3486
13
+ tiamat/readers/__init__.py,sha256=bfpabIJcDqzD69ypF0VkNMdutKI77ykEbgXcV80ySZw,664
14
+ tiamat/readers/factory.py,sha256=vbyd_G4FZTlGSO01VZay55hPCZiB1rSHWHwndpU-a_4,3613
15
+ tiamat/readers/generic.py,sha256=obezFGV699KJQhR5le8gmhct0DYkDepyT38ordl7kMA,4411
16
+ tiamat/readers/memory.py,sha256=kLRDxnLHJo4YaAUf_pbmtxy3wPAeCveE0GlmvKRrrTw,6848
17
+ tiamat/readers/nifti.py,sha256=XxXNJWkPORlLmI6RZZT20oHx6-JVf-GQBf0bp0jj5aE,2481
18
+ tiamat/readers/pipeline.py,sha256=Nm3kTH86t6rn3v7I_Ubp5dQyRWeEEsPs-mdM0dyrSoo,2982
19
+ tiamat/readers/processing.py,sha256=bVJ6JzUoWOKqhcuk_ELOfvhyQ1qSFF_RGAhEYP_bJhc,16517
20
+ tiamat/readers/protocol.py,sha256=AQa5VgOB8CarKZxvT2LeJXnCxVilBYzR7DWLgB0uxuI,1629
21
+ tiamat/readers/stack.py,sha256=EbShLWjXLNVRZf-98mCA631Ty0z80pC6WIrVzuyAI8A,32317
22
+ tiamat/readers/zarr.py,sha256=QjYqHsnTK_WlWmOs7gf072EiXAilde2UPsjZofSMagE,12217
23
+ tiamat/transformers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
+ tiamat/transformers/access.py,sha256=SqpmvV407Tur0PiR-aOHrUpLaMlPNlBL7i6swImEEiY,7618
25
+ tiamat/transformers/affine.py,sha256=Y8x-7fH5S-_Lkt3zd_uQZPNmE7C4TS2V8i0OY61m6tI,12773
26
+ tiamat/transformers/axes.py,sha256=MTCXEp9vFoYM3HVxs0JKzhshC84YI-NwPDnxAPk4Xqk,13710
27
+ tiamat/transformers/color.py,sha256=r47E209ioUydjXoeoS5MrZZgQyMEM5EjL8DsWqihPtc,9105
28
+ tiamat/transformers/coordinates.py,sha256=UO0IyTcLtFntDEqBQgP8Px8yZGwJ6QEf5X6FQ2fdYcU,1776
29
+ tiamat/transformers/dfield.py,sha256=UDiTI78rI3JOZnuZsiqh1hy50Ij1mI1Bx4cKggAP3qo,16190
30
+ tiamat/transformers/metadata.py,sha256=HlFPnN-3Eda2V3U055ntyrtHH32klGcsPDrtaMTuWG4,2253
31
+ tiamat/transformers/normalization.py,sha256=pgPYrRDNkjfVQ5T2DM93t-mbgQMpwoxnblsEIcefv8M,2191
32
+ tiamat/transformers/protocol.py,sha256=sDlA6vLChSlYqRCI4SZH6DMZlGAHJe7hMEXDzJVzPwo,2406
33
+ tiamat/transformers/view.py,sha256=dKFeisrc4pMdkZ33SvydRfQdKHdyPxLGQqANjnYl57E,7091
34
+ tiamat_python-0.1.8.dist-info/licenses/LICENSE,sha256=ikgT3hsD7J6IXa939-VBCpy9lCZYU5OgjqWqpfAQBHc,11404
35
+ tiamat_python-0.1.8.dist-info/METADATA,sha256=e2kPZsHz-5a5YzXvvp3rAr0tvXPLXAtsuCIc8f0UN2w,18948
36
+ tiamat_python-0.1.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
37
+ tiamat_python-0.1.8.dist-info/entry_points.txt,sha256=UDUzwR1Igl8DEpr-L1Ekcj8fuO6WL-I5Vfzn1EP-u0o,42
38
+ tiamat_python-0.1.8.dist-info/top_level.txt,sha256=X8LCQpqf49VO1av95DmtdLC3ECNsKICU58AqQV2ah4Y,7
39
+ tiamat_python-0.1.8.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ tiamat = tiamat.cli:cli