diff --git a/spec2nii/philips_dcm.py b/spec2nii/philips_dcm.py index 627a917..53ae2a0 100644 --- a/spec2nii/philips_dcm.py +++ b/spec2nii/philips_dcm.py @@ -129,7 +129,8 @@ def all_equal(lst): # Combine files into single MRS NIfTI # Single file name fnames_out.append(mainStr) - fnames_out.append(mainStr + '_ref') + if ref_list[0] is not None: + fnames_out.append(mainStr + '_ref') dt_used = dwelltime_list[0] or_used = orientation_list[0] diff --git a/spec2nii/spec2nii.py b/spec2nii/spec2nii.py index 1b718fa..e084a2e 100644 --- a/spec2nii/spec2nii.py +++ b/spec2nii/spec2nii.py @@ -257,7 +257,8 @@ def add_common_parameters(subparser): json=False, override_nucleus=None, override_frequency=None, - override_dwelltime=None) + override_dwelltime=None, + verbose=False) if len(sys.argv) == 1: parser.print_usage(sys.stderr)