Extraction of data from Agfa digital mobile fails

Issue #281 resolved
David Platten created an issue
c:\DJP\Sourcecode\python\openrem\testbed\issue248\Lib\site-packages\openrem\remapp\extractors>python dx.py c:\temp\Surveys\NGH\AgfaMobile1\56051C81
Traceback (most recent call last):
  File "dx.py", line 687, in <module>
  File "c:\DJP\Sourcecode\python\openrem\testbed\issue248\lib\site-packages\celery\local.py", line 167, in <lambda>
    __call__ = lambda x, *a, **kw: x._get_current_object()(*a, **kw)
  File "c:\DJP\Sourcecode\python\openrem\testbed\issue248\lib\site-packages\celery\app\task.py", line 420, in __call__
    return self.run(*args, **kwargs)
  File "dx.py", line 674, in dx
  File "dx.py", line 608, in _dx2db
  File "dx.py", line 515, in _generalstudymoduleattributes
  File "dx.py", line 406, in _projectionxrayradiationdose
  File "dx.py", line 337, in _irradiationeventxraydata
    event.image_view = get_or_create_cid(get_seq_code_value('ViewCodeSequence',dataset),get_seq_code_meaning('ViewCodeSequence',dataset))
  File "c:\DJP\Sourcecode\python\openrem\testbed\issue248\Lib\site-packages\openrem\remapp\tools\get_values.py", line 78, in get_seq_code_value
    if hasattr(seq[0],'CodeValue'):
IndexError: list index out of range

Comments (5)

  1. David Platten reporter

    This error presented itself when trying to import physics test images from a new system. It may be due to DICOM tag (0054,0220) being empty. I think the extractor needs to cope with this, but am not sure what to do about it at the moment.

  2. Log in to comment