notmatthancock / pylidc

An object relational mapping for the LIDC dataset using sqlalchemy.
https://pylidc.github.io
Other
105 stars 41 forks source link

AssertionError: Internal structure score out of bounds in Annotation(id=3761,scan_id=516) #62

Open YalienY opened 1 year ago

YalienY commented 1 year ago

Annotation(id=3761,scan_id=516) has internalStructure 5 which should not be greater than 4. I checked the xml file of LIDC-IDRL-0516, there are only three <internalStructure>1</internalStructure> tag.

here is the code

import pylidc as pl
anno = pl.query(pl.Annotation).filter(pl.Annotation.id==3761).first()
print(anno.internalStructure)
print(anno.InternalStructure)
5
Backend TkAgg is interactive backend. Turning interactive mode on.
Traceback (most recent call last):
  File "C:\Users\p-c\.conda\envs\pylidc\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\p-c\.conda\envs\pylidc\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "c:\Users\p-c\.vscode\extensions\ms-python.python-2022.6.0\pythonFiles\lib\python\debugpy\__main__.py", line 45, in <module>    cli.main()
  File "c:\Users\p-c\.vscode\extensions\ms-python.python-2022.6.0\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 444, in main
    run()
  File "c:\Users\p-c\.vscode\extensions\ms-python.python-2022.6.0\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 285, in run_file
    runpy.run_path(target_as_str, run_name=compat.force_str("__main__"))
  File "C:\Users\p-c\.conda\envs\pylidc\lib\runpy.py", line 265, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "C:\Users\p-c\.conda\envs\pylidc\lib\runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "C:\Users\p-c\.conda\envs\pylidc\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "I:\ywt\igniteTorch\test1.py", line 5, in <module>
    print(anno.InternalStructure)
  File "C:\Users\p-c\.conda\envs\pylidc\lib\site-packages\pylidc\Annotation.py", line 214, in InternalStructure
    assert s in range(1,5), "Internal structure score out of bounds."
AssertionError: Internal structure score out of bounds.

python version Python 3.8.18 pylidc 0.2.3