spinalcordtoolbox / manual-correction

Scripts for the manual correction of spinal cord labels
MIT License
4 stars 0 forks source link

Use subprocess instead of os.system to catch keyboardInterrupts #59

Closed NathanMolinier closed 1 year ago

NathanMolinier commented 1 year ago

Description

Replace all the os.system shell calls with subprocess.check_call to catch keyboard interrupts to stop the code

valosekj commented 1 year ago

Thanks!

Tested using:

$ python manual_correction.py -path-img whole-spine -config whole-spine/config.yml -path-out test_folder

I just fixed some indentation formatting.