Skip to content

Commit e3868e5

Browse files
committed
Use AcquisitionTime instead of ContentTime.
1 parent 1f6ae74 commit e3868e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

heudiconv/bids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def get_formatted_scans_key_row(dcm_fn):
406406
# parse date and time and get it into isoformat
407407
try:
408408
date = dcm_data.ContentDate
409-
time = dcm_data.ContentTime.split('.')[0]
409+
time = dcm_data.AcquisitionTime.split('.')[0]
410410
td = time + date
411411
acq_time = datetime.strptime(td, '%H%M%S%Y%m%d').isoformat()
412412
except (AttributeError, ValueError) as exc:

0 commit comments

Comments
 (0)