File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -404,10 +404,10 @@ def get_formatted_scans_key_row(dcm_fn):
404
404
"""
405
405
dcm_data = dcm .read_file (dcm_fn , stop_before_pixels = True , force = True )
406
406
# we need to store filenames and acquisition times
407
- # parse date and time and get it into isoformat
407
+ # parse date and time of start of run acquisition and get it into isoformat
408
408
try :
409
- date = dcm_data .ContentDate
410
- time = dcm_data .ContentTime
409
+ date = dcm_data .AcquisitionDate
410
+ time = dcm_data .AcquisitionTime
411
411
acq_time = get_datetime (date , time )
412
412
except (AttributeError , ValueError ) as exc :
413
413
lgr .warning ("Failed to get date/time for the content: %s" , str (exc ))
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ def test_get_formatted_scans_key_row():
171
171
172
172
row1 = get_formatted_scans_key_row (dcm_fn )
173
173
assert len (row1 ) == 3
174
- assert row1 [0 ] == '2016-10-14T09:26:36.693000 '
174
+ assert row1 [0 ] == '2016-10-14T09:26:34.692500 '
175
175
assert row1 [1 ] == 'n/a'
176
176
prandstr1 = row1 [2 ]
177
177
You can’t perform that action at this time.
0 commit comments