tomwer 1.3.8__py3-none-any.whl → 1.3.9__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/core/process/reconstruction/nabu/nabuslices.py +0 -48
- tomwer/version.py +1 -1
- {tomwer-1.3.8.dist-info → tomwer-1.3.9.dist-info}/METADATA +1 -1
- {tomwer-1.3.8.dist-info → tomwer-1.3.9.dist-info}/RECORD +10 -10
- /tomwer-1.3.8-py3.11-nspkg.pth → /tomwer-1.3.9-py3.11-nspkg.pth +0 -0
- {tomwer-1.3.8.dist-info → tomwer-1.3.9.dist-info}/LICENSE +0 -0
- {tomwer-1.3.8.dist-info → tomwer-1.3.9.dist-info}/WHEEL +0 -0
- {tomwer-1.3.8.dist-info → tomwer-1.3.9.dist-info}/entry_points.txt +0 -0
- {tomwer-1.3.8.dist-info → tomwer-1.3.9.dist-info}/namespace_packages.txt +0 -0
- {tomwer-1.3.8.dist-info → tomwer-1.3.9.dist-info}/top_level.txt +0 -0
@@ -173,14 +173,6 @@ def run_slices_reconstruction(
|
|
173
173
|
|
174
174
|
# handle special cases like several db...
|
175
175
|
nabu_configurations = interpret_tomwer_configuration(config, scan=scan)
|
176
|
-
if "phase" in config and "delta_beta" in config["phase"]:
|
177
|
-
db_list = utils.retrieve_lst_of_value_from_str(
|
178
|
-
config["phase"]["delta_beta"], type_=float
|
179
|
-
)
|
180
|
-
else:
|
181
|
-
db_list = ()
|
182
|
-
ask_sinogram_registration = len(db_list) > 0
|
183
|
-
ask_sinogram_load = False
|
184
176
|
output_urls = []
|
185
177
|
stderrs = []
|
186
178
|
stdouts = []
|
@@ -199,8 +191,6 @@ def run_slices_reconstruction(
|
|
199
191
|
scan=scan,
|
200
192
|
slice_index=slice_index,
|
201
193
|
dry_run=dry_run,
|
202
|
-
ask_sinogram_registration=ask_sinogram_registration,
|
203
|
-
ask_sinogram_load=ask_sinogram_load,
|
204
194
|
instanciate_class_only=instanciate_classes_only,
|
205
195
|
axis=config.get("reconstruction", {}).get("slice_plane", "XY"),
|
206
196
|
)
|
@@ -238,9 +228,6 @@ def run_slices_reconstruction(
|
|
238
228
|
final_configs.append(result.config)
|
239
229
|
all_succeed = all_succeed and result.success
|
240
230
|
|
241
|
-
if ask_sinogram_registration:
|
242
|
-
ask_sinogram_load = True
|
243
|
-
ask_sinogram_registration = False
|
244
231
|
if advancement is not None:
|
245
232
|
advancement.increaseAdvancement(1)
|
246
233
|
|
@@ -640,8 +627,6 @@ class SingleSliceRunner(_NabuBaseReconstructor):
|
|
640
627
|
slice_index: Union[int, str, None],
|
641
628
|
axis: NabuPlane,
|
642
629
|
target: Target,
|
643
|
-
ask_sinogram_registration: bool,
|
644
|
-
ask_sinogram_load: bool,
|
645
630
|
cluster_config: Optional[dict],
|
646
631
|
process_name: str,
|
647
632
|
add_to_latest_reconstructions: bool = True,
|
@@ -658,8 +643,6 @@ class SingleSliceRunner(_NabuBaseReconstructor):
|
|
658
643
|
if not isinstance(config, dict):
|
659
644
|
raise TypeError(f"config is expected to be a dictionary not {type(dict)}")
|
660
645
|
self._config = config
|
661
|
-
self._ask_sinogram_registration = ask_sinogram_registration
|
662
|
-
self._ask_sinogram_load = ask_sinogram_load
|
663
646
|
self._add_to_latest_reconstructions = add_to_latest_reconstructions
|
664
647
|
|
665
648
|
@property
|
@@ -670,14 +653,6 @@ class SingleSliceRunner(_NabuBaseReconstructor):
|
|
670
653
|
def config(self):
|
671
654
|
return self._config
|
672
655
|
|
673
|
-
@property
|
674
|
-
def ask_sinogram_load(self):
|
675
|
-
return self._ask_sinogram_load
|
676
|
-
|
677
|
-
@property
|
678
|
-
def ask_sinogram_registration(self):
|
679
|
-
return self._ask_sinogram_registration
|
680
|
-
|
681
656
|
@property
|
682
657
|
def add_to_latest_reconstructions(self):
|
683
658
|
return self._add_to_latest_reconstructions
|
@@ -721,25 +696,8 @@ class SingleSliceRunner(_NabuBaseReconstructor):
|
|
721
696
|
# force overwrite results
|
722
697
|
if "output" not in config:
|
723
698
|
config["output"] = {}
|
724
|
-
# handle nabu sinogram step
|
725
|
-
if self.scan.process_file is not None:
|
726
|
-
steps_file_basename, _ = os.path.splitext(self.scan.process_file)
|
727
|
-
steps_file_basename = "_".join(
|
728
|
-
("steps_file_basename", "nabu", "sinogram", "save", "step")
|
729
|
-
)
|
730
|
-
steps_file_basename = steps_file_basename + ".hdf5"
|
731
|
-
steps_file = os.path.join(
|
732
|
-
os.path.dirname(self.scan.process_file), steps_file_basename
|
733
|
-
)
|
734
|
-
else:
|
735
|
-
steps_file = ""
|
736
699
|
|
737
700
|
config["output"].update({"overwrite_results": 1})
|
738
|
-
config["pipeline"] = {
|
739
|
-
"save_steps": "sinogram" if self.ask_sinogram_registration else "",
|
740
|
-
"resume_from_step": "sinogram" if self.ask_sinogram_load else "",
|
741
|
-
"steps_file": steps_file,
|
742
|
-
}
|
743
701
|
|
744
702
|
config, cfg_folder = self._treateOutputSliceConfig(config)
|
745
703
|
# the policy is to save nabu .cfg file at the same location as the
|
@@ -918,8 +876,6 @@ def run_single_slice_reconstruction(
|
|
918
876
|
nabu_config,
|
919
877
|
dry_run,
|
920
878
|
slice_index: Union[int, str, None],
|
921
|
-
ask_sinogram_registration: bool,
|
922
|
-
ask_sinogram_load: bool,
|
923
879
|
process_id: Optional[int] = None,
|
924
880
|
cluster_config: Optional[dict] = None,
|
925
881
|
add_to_latest_reconstructions=True,
|
@@ -938,8 +894,6 @@ def run_single_slice_reconstruction(
|
|
938
894
|
:param local:
|
939
895
|
:param stdout: file to redirect stdout
|
940
896
|
:param stderr: file to redirect stderr
|
941
|
-
:param bool ask_sinogram_registration: should we ask nabu to register sinogram
|
942
|
-
:param bool ask_sinogram_load: should we ask nabu to load sinogram
|
943
897
|
:param bool add_to_latest_reconstructions: if true add reconstructed slice to the latest reconstruction.
|
944
898
|
We wan't to avoid this treatment for saaxis and sadeltebeta for example
|
945
899
|
:param bool instanciate_class_only: if we don't want to run the SingleSliceRunner but only return them. Use case: we want to keep a hand on processing and it can be cancelled
|
@@ -970,8 +924,6 @@ def run_single_slice_reconstruction(
|
|
970
924
|
slice_index=slice_index,
|
971
925
|
axis=axis,
|
972
926
|
target=target,
|
973
|
-
ask_sinogram_registration=ask_sinogram_registration,
|
974
|
-
ask_sinogram_load=ask_sinogram_load,
|
975
927
|
cluster_config=cluster_config,
|
976
928
|
add_to_latest_reconstructions=add_to_latest_reconstructions,
|
977
929
|
process_name=process_name,
|
tomwer/version.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
tomwer-1.3.
|
1
|
+
tomwer-1.3.9-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=
|
223
|
+
tomwer/version.py,sha256=Pk4loZNCpkvirAnO-SIhJqnwQf1eCpOvBBsZ5DLjVhI,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
|
@@ -326,7 +326,7 @@ tomwer/core/process/reconstruction/nabu/castvolume.py,sha256=qk5bNGcPXylEXfHE3eB
|
|
326
326
|
tomwer/core/process/reconstruction/nabu/helical.py,sha256=gauUkoPiShvnvMQrCQXv28g0yLe-GceML5kYMSXmNIg,1997
|
327
327
|
tomwer/core/process/reconstruction/nabu/nabucommon.py,sha256=3OyyDjBfdrEF4ctXo6LBH-WeyrKh24j6sJUocA7TwXw,24428
|
328
328
|
tomwer/core/process/reconstruction/nabu/nabuscores.py,sha256=UtTpMF_NZhmz_q8zvBZj6W91cNxYEA3BckWL5GRmCag,25702
|
329
|
-
tomwer/core/process/reconstruction/nabu/nabuslices.py,sha256=
|
329
|
+
tomwer/core/process/reconstruction/nabu/nabuslices.py,sha256=y-ERlOPiixI-aXlwaQvEMwdo7SN7NTvyOqkWg9pSnFc,36725
|
330
330
|
tomwer/core/process/reconstruction/nabu/nabuvolume.py,sha256=z7nyfXhMrp0Q3hAN3NYw5rvvjdgU-ZQQ7kMD3bEiFcU,21916
|
331
331
|
tomwer/core/process/reconstruction/nabu/plane.py,sha256=Cgzth77M0pFgLDULmvmPj4bqFm5MvIMJ7Ien8mRqLsE,134
|
332
332
|
tomwer/core/process/reconstruction/nabu/settings.py,sha256=JpHKf0smiXeWC8i9Mj7h3g67teJ3Gqycd-Uwg2yzGOQ,2279
|
@@ -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.9.dist-info/LICENSE,sha256=yR_hIZ1MfDh9x2_s23uFqBH7m5DgrBl9nJKkE37YChM,1877
|
780
|
+
tomwer-1.3.9.dist-info/METADATA,sha256=3SA-duXhTWjyU4MJX4zzoihA3oo_mkF6IV1Tp0VHY3c,11459
|
781
|
+
tomwer-1.3.9.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
782
|
+
tomwer-1.3.9.dist-info/entry_points.txt,sha256=fIcDnCxjgwzfIylLYhUsFyiNZjZMxsfRQBxi4f-cJg8,440
|
783
|
+
tomwer-1.3.9.dist-info/namespace_packages.txt,sha256=Iut-JTfT11SZHHm77_ZeszD7pZDWXcTweCbvrJpqDyQ,14
|
784
|
+
tomwer-1.3.9.dist-info/top_level.txt,sha256=Yz5zKh0FPiImtzHYcPuztG1AO8-6KEpUWgoChGbA0Ys,21
|
785
|
+
tomwer-1.3.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|