nabu 2024.2.0rc2__py3-none-any.whl → 2024.2.0rc3__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/resources/dataset_analyzer.py +10 -10
- {nabu-2024.2.0rc2.dist-info → nabu-2024.2.0rc3.dist-info}/METADATA +2 -2
- {nabu-2024.2.0rc2.dist-info → nabu-2024.2.0rc3.dist-info}/RECORD +8 -8
- {nabu-2024.2.0rc2.dist-info → nabu-2024.2.0rc3.dist-info}/LICENSE +0 -0
- {nabu-2024.2.0rc2.dist-info → nabu-2024.2.0rc3.dist-info}/WHEEL +0 -0
- {nabu-2024.2.0rc2.dist-info → nabu-2024.2.0rc3.dist-info}/entry_points.txt +0 -0
- {nabu-2024.2.0rc2.dist-info → nabu-2024.2.0rc3.dist-info}/top_level.txt +0 -0
nabu/__init__.py
CHANGED
@@ -302,7 +302,7 @@ class EDFDatasetAnalyzer(DatasetAnalyzer):
|
|
302
302
|
return np.deg2rad(self.dataset_scanner.rotation_angle())
|
303
303
|
|
304
304
|
def get_reduced_flats(self, **reader_kwargs):
|
305
|
-
if self.
|
305
|
+
if self.raw_flats in [None, {}]:
|
306
306
|
raise FileNotFoundError("No reduced flat ('refHST') found in %s" % self.location)
|
307
307
|
# A few notes:
|
308
308
|
# (1) In principle we could do the reduction (mean/median) from raw frames (ref_xxxx_yyyy)
|
@@ -311,15 +311,15 @@ class EDFDatasetAnalyzer(DatasetAnalyzer):
|
|
311
311
|
# (eg. subsampling, binning, distortion correction...)
|
312
312
|
# (3) The following spawns one reader instance per file, which is not elegant,
|
313
313
|
# but in principle there are typically 1-2 reduced flats in a scan
|
314
|
-
readers = {k: EDFStackReader([self.
|
315
|
-
return {k: readers[k].load_data()[0] for k in self.
|
314
|
+
readers = {k: EDFStackReader([self.raw_flats[k].file_path()], **reader_kwargs) for k in self.raw_flats.keys()}
|
315
|
+
return {k: readers[k].load_data()[0] for k in self.raw_flats.keys()}
|
316
316
|
|
317
317
|
def get_reduced_darks(self, **reader_kwargs):
|
318
318
|
# See notes in get_reduced_flats() above
|
319
|
-
if self.
|
319
|
+
if self.raw_darks in [None, {}]:
|
320
320
|
raise FileNotFoundError("No reduced dark ('darkend.edf' or 'dark.edf') found in %s" % self.location)
|
321
|
-
readers = {k: EDFStackReader([self.
|
322
|
-
return {k: readers[k].load_data()[0] for k in self.
|
321
|
+
readers = {k: EDFStackReader([self.raw_darks[k].file_path()], **reader_kwargs) for k in self.raw_darks.keys()}
|
322
|
+
return {k: readers[k].load_data()[0] for k in self.raw_darks.keys()}
|
323
323
|
|
324
324
|
@property
|
325
325
|
def files(self):
|
@@ -365,10 +365,10 @@ class HDF5DatasetAnalyzer(DatasetAnalyzer):
|
|
365
365
|
def _get_dataset_hdf5_url(self):
|
366
366
|
if len(self.projections) > 0:
|
367
367
|
frames_to_take = self.projections
|
368
|
-
elif len(self.
|
369
|
-
frames_to_take = self.
|
370
|
-
elif len(self.
|
371
|
-
frames_to_take = self.
|
368
|
+
elif len(self.raw_flats) > 0:
|
369
|
+
frames_to_take = self.raw_flats
|
370
|
+
elif len(self.raw_darks) > 0:
|
371
|
+
frames_to_take = self.raw_darks
|
372
372
|
else:
|
373
373
|
raise ValueError("No projections, no flats and no darks ?!")
|
374
374
|
first_proj_idx = sorted(frames_to_take.keys())[0]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nabu
|
3
|
-
Version: 2024.2.
|
3
|
+
Version: 2024.2.0rc3
|
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>
|
@@ -53,7 +53,7 @@ Requires-Dist: numpy <2,>1.9.0
|
|
53
53
|
Requires-Dist: scipy
|
54
54
|
Requires-Dist: h5py >=3.0
|
55
55
|
Requires-Dist: silx >=0.15.0
|
56
|
-
Requires-Dist: tomoscan >=2.1.
|
56
|
+
Requires-Dist: tomoscan >=2.1.0
|
57
57
|
Requires-Dist: psutil
|
58
58
|
Requires-Dist: pytest
|
59
59
|
Requires-Dist: tifffile
|
@@ -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=nj3TOWBu8oPUoBNHU2H_cND8gzxtol3hSVTR0ewGpTM,274
|
5
5
|
nabu/tests.py,sha256=cew9OY2uTyncHI_HM32W8CP6B1GTGKaOW65XtMEqs7o,1417
|
6
6
|
nabu/testutils.py,sha256=VkSL9tbY0XEH49Z5OjDFFhzkSxrCv4UIuvSVFgegSUY,7632
|
7
7
|
nabu/utils.py,sha256=V1B_sD54XGNKn5pORa2yNCATyswOzybey3sv8BuIYWY,26355
|
@@ -250,7 +250,7 @@ nabu/reconstruction/tests/test_reconstructor.py,sha256=3p2Wk_OqgZqkNOkhK_NJWlHkO
|
|
250
250
|
nabu/reconstruction/tests/test_sino_normalization.py,sha256=fGv5Dlidxgm8ZC70Nk6oqVgpY2jzOW9NJaGlo44IJOo,3692
|
251
251
|
nabu/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
252
252
|
nabu/resources/cor.py,sha256=-mcrTbj3G7o4PP5E_gIRo2j6_-ADmMkkOc_0CyQv84c,170
|
253
|
-
nabu/resources/dataset_analyzer.py,sha256=
|
253
|
+
nabu/resources/dataset_analyzer.py,sha256=I79-QEFrWG7Zc6O6134sLfNpj3_VmAei-1Io-zuPCts,18566
|
254
254
|
nabu/resources/gpu.py,sha256=GgpMb5umRQAUsEDEAefb4wSA5qm4JSMhkWmCEpW3X9g,5702
|
255
255
|
nabu/resources/logger.py,sha256=-lOzhN_sU4R3BIfC69aMj2O8S_ocsvXsmwkhWlcxVEc,3758
|
256
256
|
nabu/resources/nxflatfield.py,sha256=XlhLYj1TmSQ4s36W48kn0lNTvqXlFCuZxKHfTveltow,9225
|
@@ -311,9 +311,9 @@ nabu/thirdparty/pore3d_deringer_munch.py,sha256=o4bisnFc-wMjuohWBT8wgWmfNehPQGtC
|
|
311
311
|
nabu/thirdparty/tomocupy_remove_stripe.py,sha256=Khe4zFf0kRzu65Yxnvq58gt1ljOztqJGdMDhVAiM7lM,24363
|
312
312
|
nabu/thirdparty/tomopy_phase.py,sha256=hK4oPpkogLOhv23XzzEXQY2u3r8fJvASY_bINVs6ERE,8634
|
313
313
|
nabu/thirdparty/tomwer_load_flats_darks.py,sha256=ZNoVAinUb_wGYbfvs_4BVnWsjsQmNxSvCh1bWhR2WWg,5611
|
314
|
-
nabu-2024.2.
|
315
|
-
nabu-2024.2.
|
316
|
-
nabu-2024.2.
|
317
|
-
nabu-2024.2.
|
318
|
-
nabu-2024.2.
|
319
|
-
nabu-2024.2.
|
314
|
+
nabu-2024.2.0rc3.dist-info/LICENSE,sha256=1eAIPSnEsnSFNUODnLtNtQTs76exG3ZxJ1DJR6zoUBA,1066
|
315
|
+
nabu-2024.2.0rc3.dist-info/METADATA,sha256=DtswpBFRHCRI-w--UzSZ9Mp1Zc8R-xBjBfcCYRzCJPs,5541
|
316
|
+
nabu-2024.2.0rc3.dist-info/WHEEL,sha256=5sUXSg9e4bi7lTLOHcm6QEYwO5TIF1TNbTSVFVjcJcc,92
|
317
|
+
nabu-2024.2.0rc3.dist-info/entry_points.txt,sha256=cJKGkBeykVL7uK3E4R0RLRqMXifTL2qdO573syPAvJc,1288
|
318
|
+
nabu-2024.2.0rc3.dist-info/top_level.txt,sha256=fsm_N3eXLRZk2QXF9OSKPNDPFXOz8FAQjHh5avT3dok,9
|
319
|
+
nabu-2024.2.0rc3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|