GSTT-CSC / hazen

Quality assurance framework for Magnetic Resonance Imaging
https://github.com/GSTT-CSC/hazen
Apache License 2.0
22 stars 12 forks source link

Ignore files in the input folder that have no pixel data #408

Closed sophie22 closed 7 months ago

sophie22 commented 10 months ago

Describe the bug As the input to hazen is a directory path and directories may have various files, hazen errors out if it encounters a file that is not a DICOM or what only has DICOM header metadata, but no image (pixel array) data. This is often the case when exporting QA images from Philips scanners which yields additional non-image DICOM files.

Expected behavior Hazen should be able to determine and ignore files in the input folder that are not DICOM image files, and process suitable input files without errors or need to manually remove these files from the folder.

sophie22 commented 10 months ago

relates to #87