AttributeError: 'MultiValue' object has no attribute 'split'

Open
#1 · Created  · Last updated

Description

While importing dicoms with openrem_dx.py from a "Carestream Health DRX-Evolution" xray unit, I got the following error on about half the studies:

File "/opt/openrem-0.7/venv/lib/python2.7/site-packages/openrem/remapp/extractors/dx.py", line 236, in _irradiationeventxraysourcedata for i, material in enumerate(xray_filter_material.split(',')): AttributeError: 'MultiValue' object has no attribute 'split'

xray_filter_material is a iterable type (MultiValue from dicom library) so does not need a split(','). This error occured in some studies, leaving the DAP value empty in the DB. This is unless there are other scanners that return a comma separated list as text for this value?

0 attachments

0 comments

Loading commits...