Closed opennog closed 10 months ago
Hi,
Would you be able to tell me which version it started happening on, to help debugging? This is a list of the versions: https://pypi.org/project/oct-converter/#history
Yes, as I said, it started happening in 0.6.0. I think you just need to declare laterality=None
before the loop.
In 0.5.12 the output is the following:
Thanks
can you try the fix with pip install git+https://github.com/marksgraham/OCT-Converter
. if that works i'll do a release
Thanks, yes, it works as expected. Thanks
released the new version https://pypi.org/project/oct-converter/0.6.2/
Hi,
I just received some .e2e data, and when doing
e2e.read_fundus_image()
it does not seem to havechunk.type == 11
, onlychunk.type == 1073741824
. So when this conditionif chunk.ind == 0: # fundus data
is satisfied the code fails with the following error:NameError: name 'laterality' is not defined Traceback (most recent call last): File "/home/oscar/CODE/Test/venv38/lib/python3.8/site-packages/oct_converter/readers/e2e.py", line 368, in read_fundus_image laterality_dict[image_string] = laterality UnboundLocalError: local variable 'laterality' referenced before assignment
I'd appreciate if you fixed this on the latest version, in versions <0.6.0 it did not happen.
Unfortunately, I can not share the data, but I can test in local if you need me to :)
Best,