spinalcordtoolbox / manual-correction

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

Limit warnings raised by `check_files_exist` when running another round of corrections #38

Closed valosekj closed 1 year ago

valosekj commented 1 year ago

When doing corrections of already existing labels (located under derivatives\labels), the manual_correction.py script returns a lot of warnings when checking for missing files.

https://github.com/spinalcordtoolbox/manual-correction/blob/919329dd6a5a3fef8e9ffb17b9c876bc40d888a9/manual_correction.py#L575-L577

image

The reason is that the utils.check_files_exist function was originally designed to check the labels in the directory provided by -path-in (for example, ~/<your_dataset>/data_to_correct) when running the corrections for the first time.

But here, we are doing another round of corrections.

TODO: limit warnings in this case