tomwer 1.3.1__py3-none-any.whl → 1.3.3__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.
- tomwer/app/axis.py +3 -3
- tomwer/app/canvas_launcher/mainwindow.py +4 -1
- tomwer/app/diffframe.py +3 -3
- tomwer/app/multicor.py +3 -2
- tomwer/app/multipag.py +3 -2
- tomwer/app/radiostack.py +4 -2
- tomwer/app/samplemoved.py +3 -2
- tomwer/app/scanviewer.py +4 -2
- tomwer/app/sinogramviewer.py +3 -2
- tomwer/app/slicestack.py +3 -2
- tomwer/app/zstitching.py +3 -2
- tomwer/gui/visualization/volumeviewer.py +3 -3
- tomwer/version.py +1 -1
- {tomwer-1.3.1.dist-info → tomwer-1.3.3.dist-info}/METADATA +1 -1
- {tomwer-1.3.1.dist-info → tomwer-1.3.3.dist-info}/RECORD +21 -21
- /tomwer-1.3.1-py3.11-nspkg.pth → /tomwer-1.3.3-py3.11-nspkg.pth +0 -0
- {tomwer-1.3.1.dist-info → tomwer-1.3.3.dist-info}/LICENSE +0 -0
- {tomwer-1.3.1.dist-info → tomwer-1.3.3.dist-info}/WHEEL +0 -0
- {tomwer-1.3.1.dist-info → tomwer-1.3.3.dist-info}/entry_points.txt +0 -0
- {tomwer-1.3.1.dist-info → tomwer-1.3.3.dist-info}/namespace_packages.txt +0 -0
- {tomwer-1.3.1.dist-info → tomwer-1.3.3.dist-info}/top_level.txt +0 -0
tomwer/app/axis.py
CHANGED
@@ -6,7 +6,7 @@ import functools
|
|
6
6
|
import logging
|
7
7
|
import signal
|
8
8
|
import sys
|
9
|
-
|
9
|
+
import silx
|
10
10
|
from silx.gui import qt
|
11
11
|
|
12
12
|
from tomwer.core.process.reconstruction.axis.axis import (
|
@@ -124,9 +124,9 @@ def main(argv):
|
|
124
124
|
logging.root.setLevel(logging.DEBUG)
|
125
125
|
|
126
126
|
if options.use_opengl_plot:
|
127
|
-
import silx
|
128
|
-
|
129
127
|
silx.config.DEFAULT_PLOT_BACKEND = "gl"
|
128
|
+
else:
|
129
|
+
silx.config.DEFAULT_PLOT_BACKEND = "matplotlib"
|
130
130
|
|
131
131
|
increase_max_number_file()
|
132
132
|
|
@@ -4,6 +4,7 @@ import os
|
|
4
4
|
import shutil
|
5
5
|
import signal
|
6
6
|
import sys
|
7
|
+
import silx
|
7
8
|
from typing import List
|
8
9
|
from contextlib import closing
|
9
10
|
from logging.handlers import RotatingFileHandler
|
@@ -299,13 +300,15 @@ class _OMain(ocMain):
|
|
299
300
|
# define an environment variable.
|
300
301
|
# this way we should also be able to let the user define it
|
301
302
|
# on it's own later...
|
303
|
+
|
302
304
|
if self.options.use_opengl_plot:
|
303
|
-
import silx
|
304
305
|
|
305
306
|
# other standalones are not passing by the silx.config
|
306
307
|
# but for the canvas this is way simpler to use it.
|
307
308
|
# then all plot which have backend==None will pick the default plot backend
|
308
309
|
silx.config.DEFAULT_PLOT_BACKEND = "gl"
|
310
|
+
else:
|
311
|
+
silx.config.DEFAULT_PLOT_BACKEND = "matplotlib"
|
309
312
|
|
310
313
|
def setup_logging(self):
|
311
314
|
super().setup_logging()
|
tomwer/app/diffframe.py
CHANGED
@@ -5,7 +5,7 @@ import argparse
|
|
5
5
|
import logging
|
6
6
|
import signal
|
7
7
|
import sys
|
8
|
-
|
8
|
+
import silx
|
9
9
|
from silx.gui import qt
|
10
10
|
|
11
11
|
from tomwer.core.scan.scanfactory import ScanFactory
|
@@ -82,9 +82,9 @@ def main(argv):
|
|
82
82
|
scan_2 = None
|
83
83
|
|
84
84
|
if options.use_opengl_plot:
|
85
|
-
import silx
|
86
|
-
|
87
85
|
silx.config.DEFAULT_PLOT_BACKEND = "gl"
|
86
|
+
else:
|
87
|
+
silx.config.DEFAULT_PLOT_BACKEND = "matplotlib"
|
88
88
|
|
89
89
|
# handle gui
|
90
90
|
widget = DiffFrameViewer(parent=None)
|
tomwer/app/multicor.py
CHANGED
@@ -8,6 +8,7 @@ import sys
|
|
8
8
|
import time
|
9
9
|
from typing import Union
|
10
10
|
|
11
|
+
import silx
|
11
12
|
from silx.gui import qt
|
12
13
|
from silx.io.utils import h5py_read_dataset
|
13
14
|
|
@@ -233,9 +234,9 @@ def main(argv):
|
|
233
234
|
requires_reduced_dark_and_flat(scan=scan, logger_=_logger)
|
234
235
|
|
235
236
|
if options.use_opengl_plot:
|
236
|
-
import silx
|
237
|
-
|
238
237
|
silx.config.DEFAULT_PLOT_BACKEND = "gl"
|
238
|
+
else:
|
239
|
+
silx.config.DEFAULT_PLOT_BACKEND = "matplotlib"
|
239
240
|
|
240
241
|
window = SAAxisWindow(dump_roi=options.dump_roi)
|
241
242
|
window.setWindowTitle("saaxis")
|
tomwer/app/multipag.py
CHANGED
@@ -8,6 +8,7 @@ import sys
|
|
8
8
|
import time
|
9
9
|
from typing import Union
|
10
10
|
|
11
|
+
import silx
|
11
12
|
from silx.gui import qt
|
12
13
|
from silx.io.utils import h5py_read_dataset
|
13
14
|
|
@@ -282,9 +283,9 @@ def main(argv):
|
|
282
283
|
logging.root.setLevel(logging.DEBUG)
|
283
284
|
|
284
285
|
if options.use_opengl_plot:
|
285
|
-
import silx
|
286
|
-
|
287
286
|
silx.config.DEFAULT_PLOT_BACKEND = "gl"
|
287
|
+
else:
|
288
|
+
silx.config.DEFAULT_PLOT_BACKEND = "matplotlib"
|
288
289
|
|
289
290
|
increase_max_number_file()
|
290
291
|
scan = ScanFactory.create_scan_object(
|
tomwer/app/radiostack.py
CHANGED
@@ -7,6 +7,7 @@ import os
|
|
7
7
|
import signal
|
8
8
|
import sys
|
9
9
|
|
10
|
+
import silx
|
10
11
|
from silx.gui import qt
|
11
12
|
|
12
13
|
from tomwer.core.scan.nxtomoscan import NXtomoScan
|
@@ -60,10 +61,11 @@ def main(argv):
|
|
60
61
|
increase_max_number_file()
|
61
62
|
|
62
63
|
options = parser.parse_args(argv[1:])
|
63
|
-
if options.use_opengl_plot:
|
64
|
-
import silx
|
65
64
|
|
65
|
+
if options.use_opengl_plot:
|
66
66
|
silx.config.DEFAULT_PLOT_BACKEND = "gl"
|
67
|
+
else:
|
68
|
+
silx.config.DEFAULT_PLOT_BACKEND = "matplotlib"
|
67
69
|
|
68
70
|
global app # QApplication must be global to avoid seg fault on quit
|
69
71
|
app = qt.QApplication.instance() or qt.QApplication(["tomwer"])
|
tomwer/app/samplemoved.py
CHANGED
@@ -7,6 +7,7 @@ import os
|
|
7
7
|
import signal
|
8
8
|
import sys
|
9
9
|
|
10
|
+
import silx
|
10
11
|
from silx.gui import qt
|
11
12
|
|
12
13
|
from tomwer.core.scan.scanfactory import ScanFactory
|
@@ -54,9 +55,9 @@ def main(argv):
|
|
54
55
|
options = parser.parse_args(argv[1:])
|
55
56
|
|
56
57
|
if options.use_opengl_plot:
|
57
|
-
import silx
|
58
|
-
|
59
58
|
silx.config.DEFAULT_PLOT_BACKEND = "gl"
|
59
|
+
else:
|
60
|
+
silx.config.DEFAULT_PLOT_BACKEND = "matplotlib"
|
60
61
|
|
61
62
|
increase_max_number_file()
|
62
63
|
|
tomwer/app/scanviewer.py
CHANGED
@@ -45,10 +45,12 @@ def main(argv):
|
|
45
45
|
scan_path=options.scan_path, entry=options.entry
|
46
46
|
)
|
47
47
|
|
48
|
-
|
49
|
-
import silx
|
48
|
+
import silx
|
50
49
|
|
50
|
+
if options.use_opengl_plot:
|
51
51
|
silx.config.DEFAULT_PLOT_BACKEND = "gl"
|
52
|
+
else:
|
53
|
+
silx.config.DEFAULT_PLOT_BACKEND = "matplotlib"
|
52
54
|
|
53
55
|
increase_max_number_file()
|
54
56
|
|
tomwer/app/sinogramviewer.py
CHANGED
@@ -7,6 +7,7 @@ import signal
|
|
7
7
|
import sys
|
8
8
|
import weakref
|
9
9
|
|
10
|
+
import silx
|
10
11
|
from silx.gui import qt
|
11
12
|
|
12
13
|
from tomwer.core.scan.scanfactory import ScanFactory
|
@@ -72,9 +73,9 @@ def main(argv):
|
|
72
73
|
options = parser.parse_args(argv[1:])
|
73
74
|
|
74
75
|
if options.use_opengl_plot:
|
75
|
-
import silx
|
76
|
-
|
77
76
|
silx.config.DEFAULT_PLOT_BACKEND = "gl"
|
77
|
+
else:
|
78
|
+
silx.config.DEFAULT_PLOT_BACKEND = "matplotlib"
|
78
79
|
|
79
80
|
scan = ScanFactory.create_scan_object(options.scan_path, entry=options.entry)
|
80
81
|
increase_max_number_file()
|
tomwer/app/slicestack.py
CHANGED
@@ -7,6 +7,7 @@ import os
|
|
7
7
|
import signal
|
8
8
|
import sys
|
9
9
|
|
10
|
+
import silx
|
10
11
|
from silx.gui import qt
|
11
12
|
|
12
13
|
from tomwer.core.utils.resource import increase_max_number_file
|
@@ -57,9 +58,9 @@ def main(argv):
|
|
57
58
|
options = parser.parse_args(argv[1:])
|
58
59
|
|
59
60
|
if options.use_opengl_plot:
|
60
|
-
import silx
|
61
|
-
|
62
61
|
silx.config.DEFAULT_PLOT_BACKEND = "gl"
|
62
|
+
else:
|
63
|
+
silx.config.DEFAULT_PLOT_BACKEND = "matplotlib"
|
63
64
|
|
64
65
|
increase_max_number_file()
|
65
66
|
|
tomwer/app/zstitching.py
CHANGED
@@ -7,6 +7,7 @@ import signal
|
|
7
7
|
import sys
|
8
8
|
import functools
|
9
9
|
|
10
|
+
import silx
|
10
11
|
from silx.gui import qt
|
11
12
|
|
12
13
|
from nabu.utils import Progress
|
@@ -306,9 +307,9 @@ def main(argv):
|
|
306
307
|
options = parser.parse_args(argv[1:])
|
307
308
|
|
308
309
|
if options.use_opengl_plot:
|
309
|
-
import silx
|
310
|
-
|
311
310
|
silx.config.DEFAULT_PLOT_BACKEND = "gl"
|
311
|
+
else:
|
312
|
+
silx.config.DEFAULT_PLOT_BACKEND = "matplotlib"
|
312
313
|
|
313
314
|
if options.debug:
|
314
315
|
logging.root.setLevel(logging.DEBUG)
|
@@ -334,11 +334,11 @@ class VolumeViewer(qt.QMainWindow):
|
|
334
334
|
if not isinstance(sender, VolumeLoader):
|
335
335
|
raise TypeError("sender is expected to be a VolumeLoader")
|
336
336
|
|
337
|
+
self._stopExistingLoaderThread()
|
337
338
|
if sender.volume.data is None:
|
338
339
|
_logger.error(f"Failed to load volume {sender.volume.get_identifier()}")
|
339
|
-
|
340
|
-
|
341
|
-
self.setVolume(sender.volume)
|
340
|
+
else:
|
341
|
+
self.setVolume(sender.volume)
|
342
342
|
|
343
343
|
def _loadAndDisplay(self, volume):
|
344
344
|
"""Load a thread and add a callback when loading is done"""
|
tomwer/version.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
tomwer-1.3.
|
1
|
+
tomwer-1.3.3-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,34 +220,34 @@ 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=
|
223
|
+
tomwer/version.py,sha256=Of7W2gtojP8CR7O28Q4ig2cZ4t8bwPGWfskssk36Nss,4386
|
224
224
|
tomwer/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
225
|
-
tomwer/app/axis.py,sha256=
|
225
|
+
tomwer/app/axis.py,sha256=Ax0wlTp9u0Ll_3ax23QP5Ck16_M9Kop7wx0hAbXrXyM,6004
|
226
226
|
tomwer/app/canvas.py,sha256=RbQqgE7DuNjv4nGG6BNfnSevQO5_lCl7N71hGcLoxwE,1561
|
227
227
|
tomwer/app/darkref.py,sha256=SnSKtLa6K1jmHfyqQfsuhJ7EC4g04ejTrhJa9pzC4S8,276
|
228
228
|
tomwer/app/darkrefpatch.py,sha256=Zzl1zdBHEDgAPd5J7agaaK1GN3uQjxePRRCaLpXL6A8,285
|
229
|
-
tomwer/app/diffframe.py,sha256=
|
229
|
+
tomwer/app/diffframe.py,sha256=ldYQtKYkpKf98Q33ULK3Q--MGII26bsYtP5KYoHQ1Pw,3166
|
230
230
|
tomwer/app/imagekeyeditor.py,sha256=G5a8AvaRQW4VmCxszt9V73i0-JXnX67xHex4iFzl0lI,2821
|
231
231
|
tomwer/app/imagekeyupgrader.py,sha256=ffbhjdt8p8ykpQOxJhe3ygVKFBLd3EetTAnJNfxiBUk,3217
|
232
232
|
tomwer/app/intensitynormalization.py,sha256=Q22HRWJ4SuuUvAr7Et9h8IKILT-Yh-PY-yp3q6CTkpI,6660
|
233
|
-
tomwer/app/multicor.py,sha256=
|
234
|
-
tomwer/app/multipag.py,sha256=
|
233
|
+
tomwer/app/multicor.py,sha256=lAqRKNTn3IzFc2zngfKzvx2d7TGoYJyxFeJ-bgVyiUA,9940
|
234
|
+
tomwer/app/multipag.py,sha256=Q9CuNr1p_lLZWkZDmxAx0gVUsxB3EYn-Tqx20cygMdI,12799
|
235
235
|
tomwer/app/nabuapp.py,sha256=RPCnXeDL9GWN9wXywF0xpzARs02o38BAwScwRBta9pI,7646
|
236
236
|
tomwer/app/nxtomoeditor.py,sha256=BabQ8lSBzMqZLyoKN8k2ubDj6dxYApp_Ipi1SjSN1So,2837
|
237
237
|
tomwer/app/patchrawdarkflat.py,sha256=HsWKKyFpUwO2Pig06nMYWa9RYXeUzdkE2MQeIkhCRl4,3827
|
238
|
-
tomwer/app/radiostack.py,sha256=
|
238
|
+
tomwer/app/radiostack.py,sha256=CYAg9Gxo1HXn7I0DxdlyzNNbdd4Evg91x1HXiYHvyFw,2587
|
239
239
|
tomwer/app/reducedarkflat.py,sha256=QK_RAszzNDHCOTgqi28DydmnUnAPBRJHnONUF_Hy0lU,6520
|
240
240
|
tomwer/app/rsync.py,sha256=eT8HoSOp56SqbjKKm3DQ0tl5wfGaDhE3O5XzZBlzkx0,4081
|
241
|
-
tomwer/app/samplemoved.py,sha256=
|
242
|
-
tomwer/app/scanviewer.py,sha256=
|
243
|
-
tomwer/app/sinogramviewer.py,sha256=
|
244
|
-
tomwer/app/slicestack.py,sha256=
|
241
|
+
tomwer/app/samplemoved.py,sha256=ntO7EeoSfAVMaC66RR1m_mWUTfFJrOJ_QaQUxLCB8Is,2527
|
242
|
+
tomwer/app/scanviewer.py,sha256=yEaJ78p0ZaDVmk9pdKrEC7UqbabT59hzmAudy44jaiU,2708
|
243
|
+
tomwer/app/sinogramviewer.py,sha256=EnjcgeRM7-3j8j8tFEWIGL-bRM3lVq8wlGWvBV3uDuI,3677
|
244
|
+
tomwer/app/slicestack.py,sha256=YIH4bcOuFri_dHc2EkvYeBL_xv5N9rS8TwLFHaYsYV4,2428
|
245
245
|
tomwer/app/stopdatalistener.py,sha256=p5G6sP2DUXEREZzFf0QGowU9C7hX7nexWZHmC0bTIM4,957
|
246
|
-
tomwer/app/zstitching.py,sha256=
|
246
|
+
tomwer/app/zstitching.py,sha256=rOc-bwX7A-eMHo0x0dyMsQhzLgcAcyavJlZ3I_D0m5E,12877
|
247
247
|
tomwer/app/canvas_launcher/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
248
248
|
tomwer/app/canvas_launcher/config.py,sha256=vGvyskE-mOLV4PPUverFhx7lQbGuE6E9747ctGcLodY,7164
|
249
249
|
tomwer/app/canvas_launcher/environ.py,sha256=t_sgLAugHUA8d9SR6CZ6HfUHmAjS7ZcSf8I5KiwRayA,2501
|
250
|
-
tomwer/app/canvas_launcher/mainwindow.py,sha256=
|
250
|
+
tomwer/app/canvas_launcher/mainwindow.py,sha256=OBd1_FQ9u-vwUPE2PuD6jVuyGEwDSqBPnbOLEowICm0,19146
|
251
251
|
tomwer/app/canvas_launcher/splash.py,sha256=2z3q5QwoQ_ad-a2UI0R8hR3252MWG7DggXPOgDZfgBA,560
|
252
252
|
tomwer/app/canvas_launcher/widgetsscheme.py,sha256=S4x1LO798fOxL3-g2WDuAh0T2Y_Kbg79DbH3siwKPiM,2859
|
253
253
|
tomwer/core/__init__.py,sha256=lLfviCLw9VdT6SQ_9eYhqFe8QtUA-Dv-JDGpgxQ8Yzs,1373
|
@@ -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=
|
598
|
+
tomwer/gui/visualization/volumeviewer.py,sha256=LZWJuiiA4nnaCCKKM_izTKGei6M5i1GEqKPstYm2j94,16185
|
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.
|
780
|
-
tomwer-1.3.
|
781
|
-
tomwer-1.3.
|
782
|
-
tomwer-1.3.
|
783
|
-
tomwer-1.3.
|
784
|
-
tomwer-1.3.
|
785
|
-
tomwer-1.3.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|