Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
YalienY opened this issue Nov 7, 2023 · 0 comments

Comments

@YalienY
Copy link

YalienY commented Nov 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant