Skip to content

Commit 57b1295

Browse files
authored
BF: open non part 10 compliant DICOMs
1 parent 63b0152 commit 57b1295

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/heudiconv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ def get_dicom_series_time(dicom_list):
750750
import calendar
751751
import dicom as dcm
752752

753-
dcm = dcm.read_file(dicom_list[0], stop_before_pixels=True)
753+
dcm = dcm.read_file(dicom_list[0], stop_before_pixels=True, force=True)
754754
dcm_date = dcm.SeriesDate # YYYYMMDD
755755
dcm_time = dcm.SeriesTime # HHMMSS.MICROSEC
756756
dicom_time_str = dcm_date + dcm_time.split('.', 1)[0] # YYYYMMDDHHMMSS
@@ -975,7 +975,7 @@ def get_formatted_scans_key_row(item):
975975
976976
"""
977977
dcm_fn = item[-1][0]
978-
mw = ds.wrapper_from_data(dcm.read_file(dcm_fn, stop_before_pixels=True))
978+
mw = ds.wrapper_from_data(dcm.read_file(dcm_fn, stop_before_pixels=True, force=True))
979979
# we need to store filenames and acquisition times
980980
# parse date and time and get it into isoformat
981981
date = mw.dcm_data.ContentDate

0 commit comments

Comments
 (0)