File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ def get_formatted_scans_key_row(dcm_fn):
413
413
acq_time = datetime .strptime (td , '%H%M%S%Y%m%d' ).isoformat ()
414
414
except (AttributeError , ValueError ) as exc :
415
415
lgr .warning ("Failed to get date/time for the content: %s" , str (exc ))
416
- acq_time = None
416
+ acq_time = ''
417
417
# add random string
418
418
# But let's make it reproducible by using all UIDs
419
419
# (might change across versions?)
@@ -425,11 +425,11 @@ def get_formatted_scans_key_row(dcm_fn):
425
425
try :
426
426
perfphys = dcm_data .PerformingPhysicianName
427
427
except AttributeError :
428
- perfphys = None
428
+ perfphys = ''
429
429
row = [acq_time , perfphys , randstr ]
430
430
# empty entries should be 'n/a'
431
431
# https://github.com/dartmouth-pbs/heudiconv/issues/32
432
- row = ['n/a' if e is None else e for e in row ]
432
+ row = ['n/a' if not e else e for e in row ]
433
433
return row
434
434
435
435
You can’t perform that action at this time.
0 commit comments