We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8bb7feb + a8d0b51 commit 3e0b8eeCopy full SHA for 3e0b8ee
bin/heudiconv
@@ -984,7 +984,12 @@ def get_formatted_scans_key_row(item):
984
acq_time = datetime.strptime(td, '%H%M%S%Y%m%d').isoformat()
985
# add random string
986
randstr = ''.join(map(chr, sample(k=8, population=range(33, 127))))
987
- row = [acq_time, mw.dcm_data.PerformingPhysicianName, randstr]
+ # Catch AttributeError if PerformingPhysicianName info is missing
988
+ try:
989
+ perfphys = mw.dcm_data.PerformingPhysicianName
990
+ except AttributeError:
991
+ perfphys = 'n/a'
992
+ row = [acq_time, perfphys, randstr]
993
# empty entries should be 'n/a'
994
# https://github.com/dartmouth-pbs/heudiconv/issues/32
995
row = ['n/a' if not str(e) else e for e in row]
0 commit comments