I am currently going through directories, grabbing fcsv and image pairs, and then loading them into slicer using a python script.
[success, markupNode] = slicer.util.loadMarkupsFiducialList(fcsv, returnNode=True)
[success, imageNode] = slicer.util.loadVolume(image, returnNode=True)
#want to wait here until some condition is met
My goal is to be able to somehow wait inbetween the reading and the removing of the node, so I can check the fcsv files for accuracy and edit them if possible.
Is there a way to do this?
I tried using a simple input() command to wait for an enter keypress , but I get an ‘EOFError: EOF when reading a line’ when trying to do this