1. OpenREM
  2. OpenREM
  3. OpenREM
  4. Issues

Issues

Issue #281 resolved

Extraction of data from Agfa digital mobile fails

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>
    sys.exit(dx(sys.argv[1]))
  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
    _dx2db(dataset)
  File "dx.py", line 608, in _dx2db
    _generalstudymoduleattributes(dataset,g)
  File "dx.py", line 515, in _generalstudymoduleattributes
    _projectionxrayradiationdose(dataset,g)
  File "dx.py", line 406, in _projectionxrayradiationdose
    _irradiationeventxraydata(dataset,proj)
  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