tomwer 1.2.1__py3-none-any.whl → 1.2.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.
- orangecontrib/tomwer/widgets/control/NXTomomillOW.py +14 -0
- tomwer/core/process/control/nxtomomill.py +14 -14
- tomwer/synctools/stacks/reconstruction/dkrefcopy.py +21 -10
- tomwer/version.py +1 -1
- {tomwer-1.2.1.dist-info → tomwer-1.2.3.dist-info}/METADATA +1 -1
- {tomwer-1.2.1.dist-info → tomwer-1.2.3.dist-info}/RECORD +12 -12
- /tomwer-1.2.1-py3.11-nspkg.pth → /tomwer-1.2.3-py3.11-nspkg.pth +0 -0
- {tomwer-1.2.1.dist-info → tomwer-1.2.3.dist-info}/LICENSE +0 -0
- {tomwer-1.2.1.dist-info → tomwer-1.2.3.dist-info}/WHEEL +0 -0
- {tomwer-1.2.1.dist-info → tomwer-1.2.3.dist-info}/entry_points.txt +0 -0
- {tomwer-1.2.1.dist-info → tomwer-1.2.3.dist-info}/namespace_packages.txt +0 -0
- {tomwer-1.2.1.dist-info → tomwer-1.2.3.dist-info}/top_level.txt +0 -0
@@ -42,6 +42,8 @@ from tomwer.core.scan.blissscan import BlissScan
|
|
42
42
|
from tomwer.core.scan.hdf5scan import HDF5TomoScan, HDF5TomoScanIdentifier
|
43
43
|
from tomwer.gui.control.datalist import BlissHDF5DataListMainWindow
|
44
44
|
from tomwer.gui.control.nxtomomill import NXTomomillInput, OverwriteMessage
|
45
|
+
from ewoksorange.bindings.owwidgets import invalid_data
|
46
|
+
|
45
47
|
|
46
48
|
logger = logging.getLogger(__name__)
|
47
49
|
|
@@ -310,3 +312,15 @@ class NXTomomillOW(
|
|
310
312
|
self.notify_failed(scan=scan)
|
311
313
|
except Exception as e:
|
312
314
|
logger.error(f"failed to handle task finished callback. Raiseon is {e}")
|
315
|
+
|
316
|
+
def trigger_downstream(self) -> None:
|
317
|
+
for ewoksname, var in self.get_task_outputs().items():
|
318
|
+
# note: for now we want to trigger 'data' for each items of 'datas'
|
319
|
+
if ewoksname == "datas" and not (
|
320
|
+
invalid_data.is_invalid_data(var.value) or var.value is None
|
321
|
+
):
|
322
|
+
for data in var.value:
|
323
|
+
channel = self._get_output_signal("data")
|
324
|
+
channel.send(data)
|
325
|
+
else:
|
326
|
+
super().trigger_downstream()
|
@@ -59,7 +59,7 @@ class H5ToNxProcess(
|
|
59
59
|
"hdf5_scan",
|
60
60
|
"serialize_output_data",
|
61
61
|
),
|
62
|
-
output_names=("data",),
|
62
|
+
output_names=("data", "datas"),
|
63
63
|
):
|
64
64
|
"""
|
65
65
|
Task to convert from a bliss dataset to a nexus compliant dataset
|
@@ -119,20 +119,20 @@ class H5ToNxProcess(
|
|
119
119
|
if len(convs) == 0:
|
120
120
|
return
|
121
121
|
|
122
|
-
|
123
|
-
|
124
|
-
|
122
|
+
datas = []
|
123
|
+
for conv in convs:
|
124
|
+
conv_file, conv_entry = conv
|
125
|
+
scan_converted = HDF5TomoScan(scan=conv_file, entry=conv_entry)
|
126
|
+
_logger.processSucceed(
|
127
|
+
f"{config.input_file} {config.entries} has been translated to {scan_converted}"
|
125
128
|
)
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
if
|
133
|
-
self.outputs.data = scan_converted.to_dict()
|
134
|
-
else:
|
135
|
-
self.outputs.data = scan_converted
|
129
|
+
if self.get_input_value("serialize_output_data", True):
|
130
|
+
data = scan_converted.to_dict()
|
131
|
+
else:
|
132
|
+
data = scan_converted
|
133
|
+
datas.append(data)
|
134
|
+
self.outputs.datas = datas
|
135
|
+
self.outputs.data = datas[-1] if len(datas) > 0 else None
|
136
136
|
|
137
137
|
|
138
138
|
class EDFToNxProcess(
|
@@ -53,7 +53,12 @@ class DarkRefCopyProcessStack(FIFO, qt.QObject):
|
|
53
53
|
"""Signal emit when dark or flat are set by a scan. str is the scan identifier"""
|
54
54
|
|
55
55
|
def __init__(self, process_id=None):
|
56
|
-
|
56
|
+
try:
|
57
|
+
self._save_dir = tempfile.mkdtemp()
|
58
|
+
except Exception as e:
|
59
|
+
_logger.warning(
|
60
|
+
f"unable to create save dir. Error is {e}. Won't be able to copy any dark or flat"
|
61
|
+
)
|
57
62
|
qt.QObject.__init__(self)
|
58
63
|
FIFO.__init__(self, process_id=process_id)
|
59
64
|
|
@@ -77,19 +82,25 @@ class DarkRefCopyProcessStack(FIFO, qt.QObject):
|
|
77
82
|
process=self,
|
78
83
|
state=DatasetState.ON_GOING,
|
79
84
|
)
|
80
|
-
_logger.processStarted(f"dk-
|
85
|
+
_logger.processStarted(f"dk-flat-copy {data}")
|
81
86
|
assert isinstance(data, TomwerScanBase)
|
82
87
|
self._data_currently_computed = data
|
83
88
|
if isOnLbsram(data) and isLowOnMemory(get_lbsram_path()) is True:
|
84
89
|
# if computer is running into low memory on lbsram skip it
|
85
|
-
mess = "low memory, skip dk-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
callback
|
92
|
-
|
90
|
+
mess = "low memory, skip dk-flat-copy", data.path
|
91
|
+
try:
|
92
|
+
ProcessManager().notify_dataset_state(
|
93
|
+
dataset=data, process=self, state=DatasetState.SKIPPED
|
94
|
+
)
|
95
|
+
_logger.processSkipped(mess)
|
96
|
+
if callback is not None:
|
97
|
+
callback()
|
98
|
+
except Exception as e:
|
99
|
+
_logger.error(e)
|
100
|
+
try:
|
101
|
+
FIFO._end_threaded_computation(self)
|
102
|
+
except Exception as e:
|
103
|
+
_logger.error(e)
|
93
104
|
else:
|
94
105
|
self._data_currently_computed = data
|
95
106
|
self._computationThread.init(data=data, inputs=configuration)
|
tomwer/version.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
tomwer-1.2.
|
1
|
+
tomwer-1.2.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
|
@@ -38,7 +38,7 @@ orangecontrib/tomwer/widgets/control/EDF2NXTomomillOW.py,sha256=QyK1IyC6AKu0zJfP
|
|
38
38
|
orangecontrib/tomwer/widgets/control/EmailOW.py,sha256=bg_A0RmcpEHPA7whUBfRUavHEt5pjdASsVECUd9lUCc,2459
|
39
39
|
orangecontrib/tomwer/widgets/control/FilterOW.py,sha256=52t0D0NeLscvFyTT4yA7gPSn4CkkpppQpSf4STDiwjs,4659
|
40
40
|
orangecontrib/tomwer/widgets/control/NXTomomillMixIn.py,sha256=VbFm--V4k28Jx4XgLCpo-ZBM6iOVCw6l1moLLwgOYKM,3269
|
41
|
-
orangecontrib/tomwer/widgets/control/NXTomomillOW.py,sha256=
|
41
|
+
orangecontrib/tomwer/widgets/control/NXTomomillOW.py,sha256=IAwqSWmgMzVAiNyOoqtDeGftdeXskuHKZ8ZdWbjRfHU,12734
|
42
42
|
orangecontrib/tomwer/widgets/control/NXtomoConcatenate.py,sha256=9jf0Qs8jb73hPeLukmulpGRLRRm3rcdHIeks82EwaKA,5998
|
43
43
|
orangecontrib/tomwer/widgets/control/NotifierOW.py,sha256=k_SOG-L7EVwKtAb22aSpkpcdeHFDLFRixEcapQh9NxE,4207
|
44
44
|
orangecontrib/tomwer/widgets/control/ReduceDarkFlatSelectorOW.py,sha256=llc0e2Y8nMtXDQ56WXZoIdvjRwqcwU64yPVRnuyIOxY,2836
|
@@ -211,7 +211,7 @@ orangecontrib/tomwer/widgets/visualization/icons/volumeviewer.svg,sha256=2uT9_px
|
|
211
211
|
tomwer/__init__.py,sha256=82Jp1abyG4UWdGuT4nNU7LxaUV6xxkOte5pIz3w69Do,1745
|
212
212
|
tomwer/__main__.py,sha256=jkdSlsmo3fEdkyV5yDRi1IyvQbyAWlXNm5B_G97Dr58,10290
|
213
213
|
tomwer/utils.py,sha256=EgVwJ5CQVjoBvcKNwyVoXv_P4ciI11oxb8fNyy82Lck,8465
|
214
|
-
tomwer/version.py,sha256=
|
214
|
+
tomwer/version.py,sha256=50IgkXsMxUShVn_zSc0YI5vl8z5i4Pz0UdxauzVXOAk,4386
|
215
215
|
tomwer/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
216
216
|
tomwer/app/axis.py,sha256=UQNxYpHzxnGdNpkV6sJoO_0tPGCxJkylghwbA7ENsM0,5948
|
217
217
|
tomwer/app/canvas.py,sha256=Px0oWLny53xe-2OXnepfRH5ZIcuO_e7wSYmE0femhjg,1379
|
@@ -264,7 +264,7 @@ tomwer/core/process/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
|
|
264
264
|
tomwer/core/process/control/datadiscovery.py,sha256=Rihr0KI0EhrgG9WTotx3r9gXKkIgRic5lu5jXPRSy-o,377
|
265
265
|
tomwer/core/process/control/email.py,sha256=PVbnMGU9bHJx8T4FcJTJ-zBwiPAeBDky17zOc6MTWc4,4806
|
266
266
|
tomwer/core/process/control/nxtomoconcatenate.py,sha256=WL8FoQFhigYwZlQTwDamR_LlunlGILwOovmDsPCE7Xo,3846
|
267
|
-
tomwer/core/process/control/nxtomomill.py,sha256=
|
267
|
+
tomwer/core/process/control/nxtomomill.py,sha256=nTzgwg0JNs-VgpDdVTpazGlQq_YduUANPMEKmTnpcSk,6834
|
268
268
|
tomwer/core/process/control/scanlist.py,sha256=68B1nLvPj5L89gC51Y-WmBbe_eep-6cPk5PhBWFTaQg,2048
|
269
269
|
tomwer/core/process/control/scanselector.py,sha256=YD41hajIF4KdDEb6bkP2ZqMyCRmwvVNXzRyzqD5nSNQ,368
|
270
270
|
tomwer/core/process/control/scantransfer.py,sha256=GKlEtOz4v59AZuAWO0BEGabX-Z6aFlc3ScBJnLgnbIQ,27656
|
@@ -757,7 +757,7 @@ tomwer/synctools/stacks/edit/imagekeyeditor.py,sha256=T2zVmYlQCHzv3PcTuCtMz-GNdT
|
|
757
757
|
tomwer/synctools/stacks/reconstruction/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
758
758
|
tomwer/synctools/stacks/reconstruction/axis.py,sha256=Rc2jL3LjK5_wokMjIEXrUrMEINefnaZmxr-imperx7k,8865
|
759
759
|
tomwer/synctools/stacks/reconstruction/castvolume.py,sha256=HTR1s09gQK2BnlpD8yRM-UnkRzr7kQb7LUETLMdk0og,7539
|
760
|
-
tomwer/synctools/stacks/reconstruction/dkrefcopy.py,sha256=
|
760
|
+
tomwer/synctools/stacks/reconstruction/dkrefcopy.py,sha256=TNfOECMnkSAWA_BkLr7_RuJhU4xgjuNHcz2bQ8dxaJk,7243
|
761
761
|
tomwer/synctools/stacks/reconstruction/lamino.py,sha256=r0qzxO1D5PXvL6VsK0Ln0GU4-79uRcpGKIaw5H_Oqx0,8438
|
762
762
|
tomwer/synctools/stacks/reconstruction/nabu.py,sha256=MlsjVp2oPsKEOcrd03VMfN6CAe0DLEaeEOaCq-BtkGs,7803
|
763
763
|
tomwer/synctools/stacks/reconstruction/normalization.py,sha256=883OVRZC81MzM5wmrHX_I5dUztp5G2lmpmu9RjCYdvM,5349
|
@@ -775,10 +775,10 @@ tomwer/tests/test_scripts.py,sha256=cAiWjkQtaG3p0nRVaDUY9RNieAb1tC6UT6vsyBkcBsE,
|
|
775
775
|
tomwer/tests/test_utils.py,sha256=D0rNDSK6csEOYBY_7gD-4A3jp8rYAm8L1_Xg34A9I2s,305
|
776
776
|
tomwer/tests/utils/__init__.py,sha256=AAO9QsJsqO7uEg7t7fOOdniqaD4Nw6g3gQO-Fb8hXE4,8653
|
777
777
|
tomwer/tests/utils/utilstest.py,sha256=mNDjZhyzPatgMH0IwwiaFWUu8UBpzuhP5NLgxo1rrQE,7341
|
778
|
-
tomwer-1.2.
|
779
|
-
tomwer-1.2.
|
780
|
-
tomwer-1.2.
|
781
|
-
tomwer-1.2.
|
782
|
-
tomwer-1.2.
|
783
|
-
tomwer-1.2.
|
784
|
-
tomwer-1.2.
|
778
|
+
tomwer-1.2.3.dist-info/LICENSE,sha256=yR_hIZ1MfDh9x2_s23uFqBH7m5DgrBl9nJKkE37YChM,1877
|
779
|
+
tomwer-1.2.3.dist-info/METADATA,sha256=i0wJKWJakaYT2SBh1R0ilJ8wZ04BFMA3g48KWlXU1lY,10891
|
780
|
+
tomwer-1.2.3.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
781
|
+
tomwer-1.2.3.dist-info/entry_points.txt,sha256=fIcDnCxjgwzfIylLYhUsFyiNZjZMxsfRQBxi4f-cJg8,440
|
782
|
+
tomwer-1.2.3.dist-info/namespace_packages.txt,sha256=Iut-JTfT11SZHHm77_ZeszD7pZDWXcTweCbvrJpqDyQ,14
|
783
|
+
tomwer-1.2.3.dist-info/top_level.txt,sha256=Yz5zKh0FPiImtzHYcPuztG1AO8-6KEpUWgoChGbA0Ys,21
|
784
|
+
tomwer-1.2.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|