questions > Option -f %H seems to trip over spaces in StudyDescription in version 1.0.20260724
10 hours ago | Paul Wright - University College London
Option -f %H seems to trip over spaces in StudyDescription in version 1.0.20260724

I have a study with spaces in the StudyDescription. Using dcm2niix v1.0.20260416, with `-f %H` it organised files as expected, but in v1.0.20260724 it seems to have split study directories on space, and then reverted to default file naming for the converted files.


Example:


StudyDescription = "The Example Study^TES"


20260416 creates:


./The\ Example\ Study/TES/sub-$PatientID/ses-1/anat/sub-$PatientID_ses-1_acq-p2_run-$SeriesNumber_T1w.nii


20260724 creates:


./The/Example/Study/TES/Unknown/$SeriesNumber_$SeriesDescription


0416 organises images into BIDS datatype directories. 0724 puts all the images together in the "Unknown" directory. Looking at a sidecar from 0724, it has the same values for "BidsGuess" as 0416.


Using `-f %h` gives similar results for both versions, but 0724 uses PatientID for sub, whereas 0416 just uses "1". Sorting of scans into datatypes is the same for both.


I realise these functions are under development so I'm using advisedly, but thought this might be useful feedback.