def acqdatetime_series(data, results, action): """ Read acqdatetime from dicomheaders and write to IQC database """ dcmInfile = dicom.read_file(data.series_filelist[0][0], stop_before_pixels=True) dt = wadwrapper_lib.acqdatetime_series(dcmInfile) results.addDateTime('AcquisitionDateTime', dt)
def acqdatetime_series(data, results, action): try: params = action['params'] except KeyError: params = {} ## 1. read only headers dcmInfile = dicom.read_file(data.series_filelist[0][0], stop_before_pixels=True) dt = wadwrapper_lib.acqdatetime_series(dcmInfile) results.addDateTime('AcquisitionDateTime', dt)
def acqdatetime_series(data, results, action): """ Read acqdatetime from dicomheaders and write to IQC database Workflow: 1. Read only headers """ try: params = action['params'] except KeyError: params = {} ## 1. read only headers dcmInfile = dicom.read_file(data.series_filelist[0][0], stop_before_pixels=True) dt = wadwrapper_lib.acqdatetime_series(dcmInfile) results.addDateTime('AcquisitionDateTime', dt)