nabu 2024.1.9__py3-none-any.whl → 2024.1.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.
- nabu/__init__.py +1 -1
- nabu/stitching/z_stitching.py +21 -3
- {nabu-2024.1.9.dist-info → nabu-2024.1.10.dist-info}/METADATA +17 -17
- {nabu-2024.1.9.dist-info → nabu-2024.1.10.dist-info}/RECORD +8 -9
- {nabu-2024.1.9.dist-info → nabu-2024.1.10.dist-info}/WHEEL +1 -1
- nabu/app/tests/__init__.py +0 -0
- {nabu-2024.1.9.dist-info → nabu-2024.1.10.dist-info}/LICENSE +0 -0
- {nabu-2024.1.9.dist-info → nabu-2024.1.10.dist-info}/entry_points.txt +0 -0
- {nabu-2024.1.9.dist-info → nabu-2024.1.10.dist-info}/top_level.txt +0 -0
nabu/__init__.py
CHANGED
nabu/stitching/z_stitching.py
CHANGED
@@ -1191,12 +1191,30 @@ class PreProcessZStitcher(ZStitcher):
|
|
1191
1191
|
# handle sample
|
1192
1192
|
n_frames = n_proj
|
1193
1193
|
if False not in [isinstance(scan, NXtomoScan) for scan in self.z_serie]:
|
1194
|
+
|
1195
|
+
def get_sample_translation_for_projs(scan: NXtomoScan, attr):
|
1196
|
+
values = numpy.array(getattr(scan, attr))
|
1197
|
+
mask = scan.image_key_control == ImageKey.PROJECTION.value
|
1198
|
+
return values[mask]
|
1199
|
+
|
1194
1200
|
# we consider the new x, y and z position to be at the center of the one created
|
1195
|
-
x_translation = [
|
1201
|
+
x_translation = [
|
1202
|
+
get_sample_translation_for_projs(scan, "x_translation")
|
1203
|
+
for scan in self.z_serie
|
1204
|
+
if scan.x_translation is not None
|
1205
|
+
]
|
1196
1206
|
nx_tomo.sample.x_translation = [numpy.asarray(x_translation).mean()] * n_frames
|
1197
|
-
y_translation = [
|
1207
|
+
y_translation = [
|
1208
|
+
get_sample_translation_for_projs(scan, "y_translation")
|
1209
|
+
for scan in self.z_serie
|
1210
|
+
if scan.y_translation is not None
|
1211
|
+
]
|
1198
1212
|
nx_tomo.sample.y_translation = [numpy.asarray(y_translation).mean()] * n_frames
|
1199
|
-
z_translation = [
|
1213
|
+
z_translation = [
|
1214
|
+
get_sample_translation_for_projs(scan, "z_translation")
|
1215
|
+
for scan in self.z_serie
|
1216
|
+
if scan.z_translation is not None
|
1217
|
+
]
|
1200
1218
|
nx_tomo.sample.z_translation = [numpy.asarray(z_translation).mean()] * n_frames
|
1201
1219
|
|
1202
1220
|
nx_tomo.sample.name = self.z_serie[0].sample_name
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nabu
|
3
|
-
Version: 2024.1.
|
3
|
+
Version: 2024.1.10
|
4
4
|
Summary: Nabu - Tomography software
|
5
5
|
Author-email: Pierre Paleo <pierre.paleo@esrf.fr>, Henri Payno <henri.payno@esrf.fr>, Alessandro Mirone <mirone@esrf.fr>, Jérôme Lesaint <jerome.lesaint@esrf.fr>
|
6
6
|
Maintainer-email: Pierre Paleo <pierre.paleo@esrf.fr>
|
@@ -49,28 +49,28 @@ Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
|
|
49
49
|
Requires-Python: >=3.7
|
50
50
|
Description-Content-Type: text/markdown
|
51
51
|
License-File: LICENSE
|
52
|
-
Requires-Dist: numpy
|
52
|
+
Requires-Dist: numpy<2,>1.9.0
|
53
53
|
Requires-Dist: scipy
|
54
|
-
Requires-Dist: h5py
|
55
|
-
Requires-Dist: silx
|
56
|
-
Requires-Dist: tomoscan
|
54
|
+
Requires-Dist: h5py>=3.0
|
55
|
+
Requires-Dist: silx>=0.15.0
|
56
|
+
Requires-Dist: tomoscan>=2.0.4
|
57
57
|
Requires-Dist: psutil
|
58
58
|
Requires-Dist: pytest
|
59
59
|
Requires-Dist: tifffile
|
60
60
|
Provides-Extra: doc
|
61
|
-
Requires-Dist: sphinx
|
62
|
-
Requires-Dist: cloud-sptheme
|
63
|
-
Requires-Dist: myst-parser
|
64
|
-
Requires-Dist: nbsphinx
|
61
|
+
Requires-Dist: sphinx; extra == "doc"
|
62
|
+
Requires-Dist: cloud-sptheme; extra == "doc"
|
63
|
+
Requires-Dist: myst-parser; extra == "doc"
|
64
|
+
Requires-Dist: nbsphinx; extra == "doc"
|
65
65
|
Provides-Extra: full
|
66
|
-
Requires-Dist: scikit-image
|
67
|
-
Requires-Dist: PyWavelets
|
68
|
-
Requires-Dist: glymur
|
69
|
-
Requires-Dist: pycuda
|
70
|
-
Requires-Dist: scikit-cuda
|
71
|
-
Requires-Dist: pycudwt
|
72
|
-
Requires-Dist: sluurp
|
73
|
-
Requires-Dist: pyvkfft
|
66
|
+
Requires-Dist: scikit-image; extra == "full"
|
67
|
+
Requires-Dist: PyWavelets; extra == "full"
|
68
|
+
Requires-Dist: glymur; extra == "full"
|
69
|
+
Requires-Dist: pycuda<2024.1.1; extra == "full"
|
70
|
+
Requires-Dist: scikit-cuda; extra == "full"
|
71
|
+
Requires-Dist: pycudwt; extra == "full"
|
72
|
+
Requires-Dist: sluurp>=0.3; extra == "full"
|
73
|
+
Requires-Dist: pyvkfft; extra == "full"
|
74
74
|
|
75
75
|
# Nabu
|
76
76
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
doc/conf.py,sha256=3xtCarCHrXPr50GbeRDuH-o3Jzojw7mpr7vpGfZPLAE,3787
|
2
2
|
doc/create_conf_doc.py,sha256=IVOdP70KvbW9WS_UQu3Iyd0YfS60E2fJ5IDtQ_s4cDw,1143
|
3
3
|
doc/get_mathjax.py,sha256=VIvKRCdDuF2VoY8JD3mSey9XX13AZMmwTJBHdt1tUs4,1012
|
4
|
-
nabu/__init__.py,sha256=
|
4
|
+
nabu/__init__.py,sha256=4kysNldwr4sj73bjmoKdGzQ-6tc8gz-0FLrOb1apyLk,271
|
5
5
|
nabu/tests.py,sha256=cew9OY2uTyncHI_HM32W8CP6B1GTGKaOW65XtMEqs7o,1417
|
6
6
|
nabu/testutils.py,sha256=qqtGgkIhpOpXhgeoXlqCb91Rx-JlI4ALaDF6nt8YRRk,13298
|
7
7
|
nabu/utils.py,sha256=w-xfRb6TFQpS-tao6nlvfmr962pmeec-WH1GltSUCrk,23767
|
@@ -31,7 +31,6 @@ nabu/app/shrink_dataset.py,sha256=P9dorO0Q-gPAWgSHyZi3XQp4jkMTJacDYzNvJY4oh98,35
|
|
31
31
|
nabu/app/stitching.py,sha256=Ibp1oVokLVMz-VX762j1C0E88Di0YJvRt-b8NjGoe7g,3310
|
32
32
|
nabu/app/utils.py,sha256=XUBRWDmth4i3BZHd27rfarFAUP7OEcsMeVmDJ6T4EXA,1178
|
33
33
|
nabu/app/validator.py,sha256=IR-DcUV5h1Fc5CChBfBIaglrGpfKNICX7tGirAroMiw,3368
|
34
|
-
nabu/app/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
35
34
|
nabu/app/tests/test_reduce_dark_flat.py,sha256=T-_zyzD0-f2c5Z-tlzmRF5p3vPtyL2RFb-D5fIYYEoM,2641
|
36
35
|
nabu/cuda/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
36
|
nabu/cuda/convolution.py,sha256=n8KsJ7IZdPOs_K5QZC6qblnOvIKYwxtdt03oNa0GiMU,241
|
@@ -272,7 +271,7 @@ nabu/stitching/overlap.py,sha256=YbPon4_n4lT678F1aFSHx-ButcSYYqlBFjDqfNA77T4,156
|
|
272
271
|
nabu/stitching/sample_normalization.py,sha256=_radin_wxnuD3MMmZNAOKA__aPa2z3ss4TFbZeocpXc,2069
|
273
272
|
nabu/stitching/slurm_utils.py,sha256=sZ-VQPh_YlJ1Lkh7ap8qxII0rBpZryMyoxE5Xn557t8,8906
|
274
273
|
nabu/stitching/utils.py,sha256=kMn2JEMDhcBQMweSlM0rUd-037H7iNUURTFMhXOTzC8,23651
|
275
|
-
nabu/stitching/z_stitching.py,sha256=
|
274
|
+
nabu/stitching/z_stitching.py,sha256=E7qRRkayyAoJOAu94eIziVVLdz_6ecoBe9u1twbaVH4,103941
|
276
275
|
nabu/stitching/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
277
276
|
nabu/stitching/tests/test_alignment.py,sha256=MACak1ILOr8nRKeT0mWfMd-ZvhCl3SWjjcp6GjRbITc,2735
|
278
277
|
nabu/stitching/tests/test_config.py,sha256=ttWuVB9Y_MM3_wGdKbcbYi_PG3vN87cL7o5zKsMzn9g,8490
|
@@ -288,9 +287,9 @@ nabu/thirdparty/pore3d_deringer_munch.py,sha256=o4bisnFc-wMjuohWBT8wgWmfNehPQGtC
|
|
288
287
|
nabu/thirdparty/tomocupy_remove_stripe.py,sha256=VgXHr2tzTAAGZix5pwhFfbPxj4tt3yXBcjCPNQSLPAg,22810
|
289
288
|
nabu/thirdparty/tomopy_phase.py,sha256=hK4oPpkogLOhv23XzzEXQY2u3r8fJvASY_bINVs6ERE,8634
|
290
289
|
nabu/thirdparty/tomwer_load_flats_darks.py,sha256=ZNoVAinUb_wGYbfvs_4BVnWsjsQmNxSvCh1bWhR2WWg,5611
|
291
|
-
nabu-2024.1.
|
292
|
-
nabu-2024.1.
|
293
|
-
nabu-2024.1.
|
294
|
-
nabu-2024.1.
|
295
|
-
nabu-2024.1.
|
296
|
-
nabu-2024.1.
|
290
|
+
nabu-2024.1.10.dist-info/LICENSE,sha256=1eAIPSnEsnSFNUODnLtNtQTs76exG3ZxJ1DJR6zoUBA,1066
|
291
|
+
nabu-2024.1.10.dist-info/METADATA,sha256=AlQVC7OyK98VQa34vZGMJZLDz0w-Ho24nUOaTpucrvo,5220
|
292
|
+
nabu-2024.1.10.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
293
|
+
nabu-2024.1.10.dist-info/entry_points.txt,sha256=cJKGkBeykVL7uK3E4R0RLRqMXifTL2qdO573syPAvJc,1288
|
294
|
+
nabu-2024.1.10.dist-info/top_level.txt,sha256=fsm_N3eXLRZk2QXF9OSKPNDPFXOz8FAQjHh5avT3dok,9
|
295
|
+
nabu-2024.1.10.dist-info/RECORD,,
|
nabu/app/tests/__init__.py
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|