File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -750,7 +750,7 @@ def get_dicom_series_time(dicom_list):
750
750
import calendar
751
751
import dicom as dcm
752
752
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 )
754
754
dcm_date = dcm .SeriesDate # YYYYMMDD
755
755
dcm_time = dcm .SeriesTime # HHMMSS.MICROSEC
756
756
dicom_time_str = dcm_date + dcm_time .split ('.' , 1 )[0 ] # YYYYMMDDHHMMSS
@@ -975,7 +975,7 @@ def get_formatted_scans_key_row(item):
975
975
976
976
"""
977
977
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 ))
979
979
# we need to store filenames and acquisition times
980
980
# parse date and time and get it into isoformat
981
981
date = mw .dcm_data .ContentDate
You can’t perform that action at this time.
0 commit comments