aces / Loris-MRI

The set of scripts that preprocess and insert MRI data into the database.
10 stars 50 forks source link

[imaging_upload_file.pl] Error message obtained when processing an empty archive #1012

Closed nicolasbrossard closed 1 year ago

nicolasbrossard commented 1 year ago

I ran the pipeline on an archive that contains nothing and got this:

Usage: file [-bcEhikLlNnprsvzZ0] [--apple] [--extension] [--mime-encoding] [--mime-type]
            [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...
       file -C [-m magicfiles]
       file [--help]

This is coming from a call to NeuroDB::MRI::isDicomImage. We should adapt this function so that it can handle empty archives. I believe NeuroDB::MRI::isEcatImage has the same bug and should be corrected also.