Skip to content

Commit 22f448f

Browse files
committed
corrections
1 parent ab88ae6 commit 22f448f

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

docs/source/howto/run_httomo.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ method to execute in the pipeline, which will look something like the following:
407407
Total methods CPU time: 19.376s
408408
Total methods GPU time: 19.042s
409409
Total host2device time: 0.013s
410-
Total device2host time: 0.54 8s
410+
Total device2host time: 0.548s
411411
Total sources time : 0.063s
412412
Total sinks time : 0.028s
413413
Other overheads : 0.362s

httomo/method_wrappers/images.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
from mpi4py.MPI import Comm
10-
import numpy as np
1110

1211
import os
1312
from typing import Dict, Optional

httomo/runner/task_runner.py

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -311,19 +311,10 @@ def _get_methods_name_for_snapshot(self, section: Section) -> str:
311311
"find_center_vo",
312312
"save_intermediate_data",
313313
]
314-
for ind_outer in range(1, len(section)):
315-
methods_name = section.methods[-ind_outer].method_name
316-
if methods_name in irrelevant_method_names_snapshots:
317-
for ind_inner in range(1, len(section)):
318-
methods_name = section.methods[-(ind_inner + 1)].method_name
319-
if methods_name in irrelevant_method_names_snapshots:
320-
methods_name = section.methods[-ind_inner + 1].method_name
321-
else:
322-
break
323-
else:
324-
break
325-
break
326-
return methods_name
314+
for wrapper in list(reversed(section.methods)):
315+
if wrapper.method_name not in irrelevant_method_names_snapshots:
316+
return wrapper.method_name
317+
raise ValueError("Unable to find method name in section for snapshot saving")
327318

328319
def _log_pipeline(self, msg: Any, level: int = logging.INFO):
329320
log_once(msg, level=level)

0 commit comments

Comments
 (0)