I canβt seem to reproduce your issue with one of the bids examples I have modified:
asl002
βββ dataset_description.json
βββ README
βββ sub-Sub103
βββ anat
β βββ sub-Sub103_T1w.json
β βββ sub-Sub103_T1w.nii.gz
βββ perf
βββ sub-Sub103_acq-foo2_aslcontext.tsv
βββ sub-Sub103_acq-foo2_asl.json
βββ sub-Sub103_acq-foo2_asl.nii.gz
βββ sub-Sub103_acq-foo_aslcontext.tsv
βββ sub-Sub103_acq-foo_asl.json
βββ sub-Sub103_acq-foo_asllabeling.jpg
βββ sub-Sub103_acq-foo_asl.nii.gz
βββ sub-Sub103_m0scan.json
βββ sub-Sub103_m0scan.nii.gz
modified the M0 json to give me this
cat asl002/sub-Sub103/perf/sub-Sub103_m0scan.json
{"Manufacturer":"Philips",
"ManufacturersModelName":"Achieva",
"SoftwareVersions":"5.1.7_5.1.7.2",
"MagneticFieldStrength":3,
"ReceiveCoilName":"MULTI_COIL",
"MRAcquisitionType":"2D",
"PulseSequenceType":"EPI",
"ScanningSequence":"GR",
"SequenceVariant":"SK",
"ScanOptions":"FS",
"PulseSequenceDetails":"Philips 2D epi pcasl product",
"PartialFourier":0.421875,
"PhaseEncodingDirection":"j",
"TotalReadoutTime":0.02198740305218437,
"EchoTime":0.015001,
"SliceTiming":[0,0.0385,0.077,0.1155,0.154,0.1925,0.231,0.2695,0.308,0.3465,0.385,0.4235,0.462,0.5004999999999999,0.539,0.5775,0.616,0.6545,0.6929999999999999,0.7315],
"FlipAngle":90,
"RepetitionTimePreparation":9,
"IntendedFor":["perf/sub-Sub103_acq-foo_asl.nii.gz",
"perf/sub-Sub103_acq-foo2_asl.nii.gz"]
}
bids validator gives me this (the code 36 errors is expected on the bids examples as they are empty files)
bids-validator asl002
bids-validator@1.11.1-dev.0
1: [ERR] This file is too small to contain the minimal NIfTI header. (code: 36 - NIFTI_TOO_SMALL)
./sub-Sub103/anat/sub-Sub103_T1w.nii.gz
./sub-Sub103/perf/sub-Sub103_acq-foo2_asl.nii.gz
./sub-Sub103/perf/sub-Sub103_acq-foo_asl.nii.gz
./sub-Sub103/perf/sub-Sub103_m0scan.nii.gz
Please visit https://neurostars.org/search?q=NIFTI_TOO_SMALL for existing conversations about this issue.
Summary: Available Tasks: Available Modalities:
13 Files, 133.03KB MRI
1 - Subject
1 - Session
If you have any questions, please post on https://neurostars.org/tags/bids.