Hi all,
I got the following issue with slicer.cli.run. The first loop generates 3 registration output volumes, then the second loop extracts features from those 3 output volumes. But the last extraction always went wrong (the other two extractions worked fine), it starts before the last registration finished and get no result. It seems like once the slicer.cli in the first loop gets the last input params and starts to run, the second loop will start, and the second loop will finish before the last run of first loop. Something I did wrong here? @pieper @lassoan
for i in range(3):
setting = settings[i]
slicer.cli.run(antsRegistration(setting), wait_for_completion=True)
for i in range(3):
slicer.cli.run(SlicerRadiomics(), wait_for_completion=True)