roifile 2025.2.20__py3-none-any.whl → 2025.5.10__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.
Potentially problematic release.
This version of roifile might be problematic. Click here for more details.
- roifile/__init__.py +14 -1
- roifile/roifile.py +14 -9
- {roifile-2025.2.20.dist-info → roifile-2025.5.10.dist-info}/METADATA +16 -10
- roifile-2025.5.10.dist-info/RECORD +10 -0
- {roifile-2025.2.20.dist-info → roifile-2025.5.10.dist-info}/WHEEL +1 -1
- {roifile-2025.2.20.dist-info → roifile-2025.5.10.dist-info/licenses}/LICENSE +1 -1
- roifile-2025.2.20.dist-info/RECORD +0 -10
- {roifile-2025.2.20.dist-info → roifile-2025.5.10.dist-info}/entry_points.txt +0 -0
- {roifile-2025.2.20.dist-info → roifile-2025.5.10.dist-info}/top_level.txt +0 -0
roifile/__init__.py
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
# roifile/__init__.py
|
|
2
2
|
|
|
3
|
-
from .roifile import __doc__, __all__, __version__
|
|
4
3
|
from .roifile import *
|
|
4
|
+
from .roifile import __all__, __doc__, __version__
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def _set_module() -> None:
|
|
8
|
+
"""Set __module__ attribute for all public objects."""
|
|
9
|
+
globs = globals()
|
|
10
|
+
module = globs['__name__']
|
|
11
|
+
for item in __all__:
|
|
12
|
+
obj = globs[item]
|
|
13
|
+
if hasattr(obj, '__module__'):
|
|
14
|
+
obj.__module__ = module
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
_set_module()
|
roifile/roifile.py
CHANGED
|
@@ -38,8 +38,8 @@ interest, geometric shapes, paths, text, and whatnot for image overlays.
|
|
|
38
38
|
.. _ImageJ: https://imagej.net
|
|
39
39
|
|
|
40
40
|
:Author: `Christoph Gohlke <https://www.cgohlke.com>`_
|
|
41
|
-
:License: BSD
|
|
42
|
-
:Version: 2025.
|
|
41
|
+
:License: BSD-3-Clause
|
|
42
|
+
:Version: 2025.5.10
|
|
43
43
|
:DOI: `10.5281/zenodo.6941603 <https://doi.org/10.5281/zenodo.6941603>`_
|
|
44
44
|
|
|
45
45
|
Quickstart
|
|
@@ -65,14 +65,18 @@ Requirements
|
|
|
65
65
|
This revision was tested with the following requirements and dependencies
|
|
66
66
|
(other versions may work):
|
|
67
67
|
|
|
68
|
-
- `CPython <https://www.python.org>`_ 3.10.11, 3.11.9, 3.12.
|
|
69
|
-
- `NumPy <https://pypi.org/project/numpy/>`_ 2.2.
|
|
70
|
-
- `Tifffile <https://pypi.org/project/tifffile/>`_ 2025.
|
|
71
|
-
- `Matplotlib <https://pypi.org/project/matplotlib/>`_ 3.10.
|
|
68
|
+
- `CPython <https://www.python.org>`_ 3.10.11, 3.11.9, 3.12.10, 3.13.3 64-bit
|
|
69
|
+
- `NumPy <https://pypi.org/project/numpy/>`_ 2.2.5
|
|
70
|
+
- `Tifffile <https://pypi.org/project/tifffile/>`_ 2025.5.10 (optional)
|
|
71
|
+
- `Matplotlib <https://pypi.org/project/matplotlib/>`_ 3.10.3 (optional)
|
|
72
72
|
|
|
73
73
|
Revisions
|
|
74
74
|
---------
|
|
75
75
|
|
|
76
|
+
2025.5.10
|
|
77
|
+
|
|
78
|
+
- Support Python 3.14.
|
|
79
|
+
|
|
76
80
|
2025.2.20
|
|
77
81
|
|
|
78
82
|
- Drop support for Python 3.9.
|
|
@@ -187,6 +191,7 @@ Read the ROIs from the ZIP file:
|
|
|
187
191
|
|
|
188
192
|
Write the ROIs to an ImageJ formatted TIFF file:
|
|
189
193
|
|
|
194
|
+
>>> import numpy
|
|
190
195
|
>>> import tifffile
|
|
191
196
|
>>> tifffile.imwrite(
|
|
192
197
|
... '_test.tif',
|
|
@@ -210,7 +215,7 @@ For an advanced example, see `roifile_demo.py` in the source distribution.
|
|
|
210
215
|
|
|
211
216
|
from __future__ import annotations
|
|
212
217
|
|
|
213
|
-
__version__ = '2025.
|
|
218
|
+
__version__ = '2025.5.10'
|
|
214
219
|
|
|
215
220
|
__all__ = [
|
|
216
221
|
'__version__',
|
|
@@ -1311,8 +1316,8 @@ def enumstr(v: enum.Enum | None, /) -> str:
|
|
|
1311
1316
|
|
|
1312
1317
|
|
|
1313
1318
|
def logger() -> logging.Logger:
|
|
1314
|
-
"""Return
|
|
1315
|
-
return logging.getLogger(
|
|
1319
|
+
"""Return logger for roifile module."""
|
|
1320
|
+
return logging.getLogger('roifile')
|
|
1316
1321
|
|
|
1317
1322
|
|
|
1318
1323
|
def test(verbose: bool = False) -> None:
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: roifile
|
|
3
|
-
Version: 2025.
|
|
3
|
+
Version: 2025.5.10
|
|
4
4
|
Summary: Read and write ImageJ ROI format
|
|
5
5
|
Home-page: https://www.cgohlke.com
|
|
6
6
|
Author: Christoph Gohlke
|
|
7
7
|
Author-email: cgohlke@cgohlke.com
|
|
8
|
-
License: BSD
|
|
8
|
+
License: BSD-3-Clause
|
|
9
9
|
Project-URL: Bug Tracker, https://github.com/cgohlke/roifile/issues
|
|
10
10
|
Project-URL: Source Code, https://github.com/cgohlke/roifile
|
|
11
11
|
Platform: any
|
|
12
12
|
Classifier: Development Status :: 4 - Beta
|
|
13
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
14
13
|
Classifier: Intended Audience :: Science/Research
|
|
15
14
|
Classifier: Intended Audience :: Developers
|
|
16
15
|
Classifier: Operating System :: OS Independent
|
|
@@ -19,6 +18,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
22
22
|
Requires-Python: >=3.10
|
|
23
23
|
Description-Content-Type: text/x-rst
|
|
24
24
|
License-File: LICENSE
|
|
@@ -33,6 +33,7 @@ Dynamic: description
|
|
|
33
33
|
Dynamic: description-content-type
|
|
34
34
|
Dynamic: home-page
|
|
35
35
|
Dynamic: license
|
|
36
|
+
Dynamic: license-file
|
|
36
37
|
Dynamic: platform
|
|
37
38
|
Dynamic: project-url
|
|
38
39
|
Dynamic: provides-extra
|
|
@@ -50,8 +51,8 @@ interest, geometric shapes, paths, text, and whatnot for image overlays.
|
|
|
50
51
|
.. _ImageJ: https://imagej.net
|
|
51
52
|
|
|
52
53
|
:Author: `Christoph Gohlke <https://www.cgohlke.com>`_
|
|
53
|
-
:License: BSD
|
|
54
|
-
:Version: 2025.
|
|
54
|
+
:License: BSD-3-Clause
|
|
55
|
+
:Version: 2025.5.10
|
|
55
56
|
:DOI: `10.5281/zenodo.6941603 <https://doi.org/10.5281/zenodo.6941603>`_
|
|
56
57
|
|
|
57
58
|
Quickstart
|
|
@@ -77,14 +78,18 @@ Requirements
|
|
|
77
78
|
This revision was tested with the following requirements and dependencies
|
|
78
79
|
(other versions may work):
|
|
79
80
|
|
|
80
|
-
- `CPython <https://www.python.org>`_ 3.10.11, 3.11.9, 3.12.
|
|
81
|
-
- `NumPy <https://pypi.org/project/numpy/>`_ 2.2.
|
|
82
|
-
- `Tifffile <https://pypi.org/project/tifffile/>`_ 2025.
|
|
83
|
-
- `Matplotlib <https://pypi.org/project/matplotlib/>`_ 3.10.
|
|
81
|
+
- `CPython <https://www.python.org>`_ 3.10.11, 3.11.9, 3.12.10, 3.13.3 64-bit
|
|
82
|
+
- `NumPy <https://pypi.org/project/numpy/>`_ 2.2.5
|
|
83
|
+
- `Tifffile <https://pypi.org/project/tifffile/>`_ 2025.5.10 (optional)
|
|
84
|
+
- `Matplotlib <https://pypi.org/project/matplotlib/>`_ 3.10.3 (optional)
|
|
84
85
|
|
|
85
86
|
Revisions
|
|
86
87
|
---------
|
|
87
88
|
|
|
89
|
+
2025.5.10
|
|
90
|
+
|
|
91
|
+
- Support Python 3.14.
|
|
92
|
+
|
|
88
93
|
2025.2.20
|
|
89
94
|
|
|
90
95
|
- Drop support for Python 3.9.
|
|
@@ -199,6 +204,7 @@ Read the ROIs from the ZIP file:
|
|
|
199
204
|
|
|
200
205
|
Write the ROIs to an ImageJ formatted TIFF file:
|
|
201
206
|
|
|
207
|
+
>>> import numpy
|
|
202
208
|
>>> import tifffile
|
|
203
209
|
>>> tifffile.imwrite(
|
|
204
210
|
... '_test.tif',
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
roifile/__init__.py,sha256=3rIo0va3lg8nog3pbcWyEbYxGEsxdB9uXUUf3zfTeG4,397
|
|
2
|
+
roifile/__main__.py,sha256=Mfn3wm-4cRRChIRonbEcZZT7eRX6RFlS31S8wS1JAVM,132
|
|
3
|
+
roifile/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
roifile/roifile.py,sha256=DJ9wfD3mw6VscbMBeWQt-bcnp0Gi0X2NqZVQzPeBKIk,48713
|
|
5
|
+
roifile-2025.5.10.dist-info/licenses/LICENSE,sha256=1yXweb-z6uE6JaIRMz2UpNOF-sYNbqTyHYhmRHWjyEI,1559
|
|
6
|
+
roifile-2025.5.10.dist-info/METADATA,sha256=-e_Op2Q0FLIYk-fNnbZK8Xnw0W12iNUJFuenZnPNfvQ,5904
|
|
7
|
+
roifile-2025.5.10.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
|
8
|
+
roifile-2025.5.10.dist-info/entry_points.txt,sha256=xP8cwEUbAUeROLXNRanJnAIl13tagbjSSDGfVWf2vh0,49
|
|
9
|
+
roifile-2025.5.10.dist-info/top_level.txt,sha256=QlfLomxPxuYNU0TTR7MXoVBAEAXCj2WJyKvoCJxNwek,8
|
|
10
|
+
roifile-2025.5.10.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
roifile/__init__.py,sha256=leII9J_JWVpi0O9sAnG8s4SpcdwdqEeisFEFsnmN56c,101
|
|
2
|
-
roifile/__main__.py,sha256=Mfn3wm-4cRRChIRonbEcZZT7eRX6RFlS31S8wS1JAVM,132
|
|
3
|
-
roifile/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
roifile/roifile.py,sha256=U9D1bDHdB7ouX6lo9gzGp8D3MHqLY7097N5gE-F5UXw,48695
|
|
5
|
-
roifile-2025.2.20.dist-info/LICENSE,sha256=pvGlMPFie0plhEXHX8bbte9oDsxZ-CVKIaDLte36Tdc,1559
|
|
6
|
-
roifile-2025.2.20.dist-info/METADATA,sha256=1OTb7eVe9XvXEukBBvQ2rdLMg2yKoKttQMMClbCgp5A,5814
|
|
7
|
-
roifile-2025.2.20.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
8
|
-
roifile-2025.2.20.dist-info/entry_points.txt,sha256=xP8cwEUbAUeROLXNRanJnAIl13tagbjSSDGfVWf2vh0,49
|
|
9
|
-
roifile-2025.2.20.dist-info/top_level.txt,sha256=QlfLomxPxuYNU0TTR7MXoVBAEAXCj2WJyKvoCJxNwek,8
|
|
10
|
-
roifile-2025.2.20.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|