Skip to content

Commit ddebf3a

Browse files
committed
be more specific when filtering: check Siemens XA and SeriesNumber above 1000
1 parent 08bb7e3 commit ddebf3a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

heudiconv/convert.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,12 @@ def filter_partial_volumes(
875875
filtered BIDS metadata
876876
877877
"""
878-
partial_volumes = [not metadata.get("RawImage", True) for metadata in bids_metas]
878+
partial_volumes = [
879+
not metadata.get("RawImage", True)
880+
and metadata.get("SeriesNumber", 0) > 1000
881+
and "syngo MR XA" in metadata.get("SoftwareVersions")
882+
for metadata in bids_metas
883+
]
879884
no_partial_volumes = not any(partial_volumes) or all(partial_volumes)
880885

881886
if no_partial_volumes:

0 commit comments

Comments
 (0)