tomwer 1.3.3__py3-none-any.whl → 1.3.5__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.
@@ -15,7 +15,6 @@ from tomoscan.esrf.volume.hdf5volume import HDF5Volume
15
15
  from tomoscan.factory import Factory
16
16
  from tomoscan.identifier import VolumeIdentifier
17
17
  from tomoscan.volumebase import VolumeBase
18
- from tomoscan.io import HDF5File, get_swmr_mode
19
18
 
20
19
  from tomwer.core.scan.scanbase import TomwerScanBase
21
20
  from tomwer.gui.visualization.reconstructionparameters import ReconstructionParameters
@@ -298,9 +297,16 @@ class VolumeViewer(qt.QMainWindow):
298
297
 
299
298
  self._close_h5_file()
300
299
  if isinstance(volume, HDF5Volume):
301
- self._h5_file = HDF5File(
302
- filename=volume.data_url.file_path(), mode="r", swmr=get_swmr_mode()
303
- )
300
+ try:
301
+ self._h5_file = h5py.File(volume.data_url.file_path(), mode="r")
302
+ except OSError:
303
+ self._h5_file = h5py.File(
304
+ volume.data_url.file_path(),
305
+ mode="r",
306
+ libver="latest",
307
+ swmr=True,
308
+ )
309
+
304
310
  if volume.data_url.data_path() in self._h5_file:
305
311
  data = self._h5_file[volume.data_url.data_path()]
306
312
  state = "loaded"
tomwer/version.py CHANGED
@@ -77,7 +77,7 @@ RELEASE_LEVEL_VALUE = {
77
77
 
78
78
  MAJOR = 1
79
79
  MINOR = 3
80
- MICRO = 3
80
+ MICRO = 5
81
81
  RELEV = "final" # <16
82
82
  SERIAL = 0 # <16
83
83
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tomwer
3
- Version: 1.3.3
3
+ Version: 1.3.5
4
4
  Summary: "tomography workflow tools"
5
5
  Home-page: https://gitlab.esrf.fr/tomotools/tomwer
6
6
  Author: data analysis unit
@@ -30,6 +30,7 @@ Requires-Dist: nxtomo >=1.2.3rc1
30
30
  Requires-Dist: nxtomomill >=1.0dev
31
31
  Requires-Dist: processview >=1.3
32
32
  Requires-Dist: ewoks >=0.1.1
33
+ Requires-Dist: ewoksorange ==0.6
33
34
  Requires-Dist: sluurp >=0.3.3
34
35
  Requires-Dist: packaging
35
36
  Requires-Dist: flufl-lock
@@ -1,4 +1,4 @@
1
- tomwer-1.3.3-py3.11-nspkg.pth,sha256=xeeGR3TjdoVxdFeF6T-zSwZWh6Et--EYuPWu67LxL_c,574
1
+ tomwer-1.3.5-py3.11-nspkg.pth,sha256=xeeGR3TjdoVxdFeF6T-zSwZWh6Et--EYuPWu67LxL_c,574
2
2
  orangecontrib/tomwer/__init__.py,sha256=B4DXy1gY_wXmNYa2aOfapmJb2mEuCAjoaNEGnpBs70g,148
3
3
  orangecontrib/tomwer/state_summary.py,sha256=5_dPzweL3r0ye4ZfJo6IV2ThJI8fQhWoO2ySdJJajj8,1711
4
4
  orangecontrib/tomwer/orange/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -220,7 +220,7 @@ orangecontrib/tomwer/widgets/visualization/icons/volumeviewer.svg,sha256=2uT9_px
220
220
  tomwer/__init__.py,sha256=82Jp1abyG4UWdGuT4nNU7LxaUV6xxkOte5pIz3w69Do,1745
221
221
  tomwer/__main__.py,sha256=jsDfWA2yl5am0dHQVkYwlKLxxqKNont6VDF-LusuawE,8575
222
222
  tomwer/utils.py,sha256=EgVwJ5CQVjoBvcKNwyVoXv_P4ciI11oxb8fNyy82Lck,8465
223
- tomwer/version.py,sha256=Of7W2gtojP8CR7O28Q4ig2cZ4t8bwPGWfskssk36Nss,4386
223
+ tomwer/version.py,sha256=7RnYG3T8V7-HCuyqmXQHZ9FNoUnZS9FQvPROmBSP_fc,4386
224
224
  tomwer/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
225
225
  tomwer/app/axis.py,sha256=Ax0wlTp9u0Ll_3ax23QP5Ck16_M9Kop7wx0hAbXrXyM,6004
226
226
  tomwer/app/canvas.py,sha256=RbQqgE7DuNjv4nGG6BNfnSevQO5_lCl7N71hGcLoxwE,1561
@@ -595,7 +595,7 @@ tomwer/gui/visualization/scanoverview.py,sha256=xmq_nhbnGcedDreqIrZ8ZXXtRhC6KI4q
595
595
  tomwer/gui/visualization/sinogramviewer.py,sha256=mBfB77ywfyj4vYkb7lYhEcn9-gZVjqzlTvMCngB9CyI,9707
596
596
  tomwer/gui/visualization/tomoobjoverview.py,sha256=YzocBQXhgnzI8IsJg5junE7218WcJdvSNH4r6DQgo74,1991
597
597
  tomwer/gui/visualization/volumeoverview.py,sha256=6Hv1TtsDlaGQPCJKW-IkGy_r5Buue-O95tl1KkpMD-0,2491
598
- tomwer/gui/visualization/volumeviewer.py,sha256=LZWJuiiA4nnaCCKKM_izTKGei6M5i1GEqKPstYm2j94,16185
598
+ tomwer/gui/visualization/volumeviewer.py,sha256=LZq0sHlxpkPvBT5D4l7fbMj7jdwRBRylqswQy1bJD_c,16335
599
599
  tomwer/gui/visualization/diffviewer/__init__.py,sha256=rZ7qOTfAChU3FouCdkZllXT9ZZqTdo1XhLZMfmOqUAE,39
600
600
  tomwer/gui/visualization/diffviewer/diffviewer.py,sha256=Y8tDT1l-AkBSpTkBes31r_bhjbBeAlO__3OAc0Ob6Io,21812
601
601
  tomwer/gui/visualization/diffviewer/shiftwidget.py,sha256=2hpGo6BvubcSbw2QOT823sL74AEWyU32UxnvVZ4bDok,20928
@@ -776,10 +776,10 @@ tomwer/tests/test_utils.py,sha256=D0rNDSK6csEOYBY_7gD-4A3jp8rYAm8L1_Xg34A9I2s,30
776
776
  tomwer/tests/utils.py,sha256=RAXx5A99WD4Vyuv_wjHBdr-Xu7UiThHRKw2eiB5GX10,107
777
777
  tomwer/third_part/WaitingOverlay.py,sha256=GnqiytcJDp_24Cmz_2nZAP5HfpL3Yh7AzR2ATIusGsg,3906
778
778
  tomwer/third_part/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
779
- tomwer-1.3.3.dist-info/LICENSE,sha256=yR_hIZ1MfDh9x2_s23uFqBH7m5DgrBl9nJKkE37YChM,1877
780
- tomwer-1.3.3.dist-info/METADATA,sha256=ozipWiY9Oq_dTCyW4j2haDZ_14pujNMkqbjBk7HPMMU,11426
781
- tomwer-1.3.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
782
- tomwer-1.3.3.dist-info/entry_points.txt,sha256=fIcDnCxjgwzfIylLYhUsFyiNZjZMxsfRQBxi4f-cJg8,440
783
- tomwer-1.3.3.dist-info/namespace_packages.txt,sha256=Iut-JTfT11SZHHm77_ZeszD7pZDWXcTweCbvrJpqDyQ,14
784
- tomwer-1.3.3.dist-info/top_level.txt,sha256=Yz5zKh0FPiImtzHYcPuztG1AO8-6KEpUWgoChGbA0Ys,21
785
- tomwer-1.3.3.dist-info/RECORD,,
779
+ tomwer-1.3.5.dist-info/LICENSE,sha256=yR_hIZ1MfDh9x2_s23uFqBH7m5DgrBl9nJKkE37YChM,1877
780
+ tomwer-1.3.5.dist-info/METADATA,sha256=CXAdzIqOr-504Mh_Dq4fDhzxC_DSK7-eT-fJ64Vmkew,11459
781
+ tomwer-1.3.5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
782
+ tomwer-1.3.5.dist-info/entry_points.txt,sha256=fIcDnCxjgwzfIylLYhUsFyiNZjZMxsfRQBxi4f-cJg8,440
783
+ tomwer-1.3.5.dist-info/namespace_packages.txt,sha256=Iut-JTfT11SZHHm77_ZeszD7pZDWXcTweCbvrJpqDyQ,14
784
+ tomwer-1.3.5.dist-info/top_level.txt,sha256=Yz5zKh0FPiImtzHYcPuztG1AO8-6KEpUWgoChGbA0Ys,21
785
+ tomwer-1.3.5.dist-info/RECORD,,
File without changes