We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddebf3a commit 49ca6bbCopy full SHA for 49ca6bb
heudiconv/convert.py
@@ -875,6 +875,9 @@ def filter_partial_volumes(
875
filtered BIDS metadata
876
877
"""
878
+ # dcm2niix sets metadata "RawImage": false and "SeriesNumber" += 1000 to mark partial volumes
879
+ # https://github.com/rordenlab/dcm2niix/blob/f6d7a0018d9d268ed1d084faafdedfadcbbb830b/console/nii_dicom.cpp#L8434-L8437
880
+ # following that logic until https://github.com/nipy/heudiconv/pull/828 gets resolved
881
partial_volumes = [
882
not metadata.get("RawImage", True)
883
and metadata.get("SeriesNumber", 0) > 1000
0 commit comments