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

'FileDataset' object has no attribute 'FovealSensitivityMeasured' #6

Open
gaew25 opened this issue Nov 11, 2023 · 0 comments
Open

'FileDataset' object has no attribute 'FovealSensitivityMeasured' #6

gaew25 opened this issue Nov 11, 2023 · 0 comments

Comments

@gaew25
Copy link

gaew25 commented Nov 11, 2023

Hello,
Thank you for creating hvf-extraction-script 0.0.4!

I saved DICOM file directly from Zeiss FORUM both pdf and DICOM format. I followed your code documentation.
I changed pdf to jpg and thing works well, but for the same patient file in DICOM, it does not work.
Here is what I got:

---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[44], line 1
----> 1 hvf_obj = Hvf_Object.get_hvf_object_from_dicom(hvf_dicom)

File ~/anaconda3/lib/python3.10/site-packages/hvf_extraction_script/hvf_data/hvf_object.py:417, in Hvf_Object.get_hvf_object_from_dicom(cls, dicom_ds)
414 hvf_metadata[Hvf_Object.KEYLABEL_LATERALITY] = field;
416 # ===== FOVEA =====
--> 417 field = str(dicom_ds.FovealSensitivityMeasured)
419 if (field == "YES"):
420 field = float(str(dicom_ds.FovealSensitivity));

File ~/anaconda3/lib/python3.10/site-packages/pydicom/dataset.py:908, in Dataset.getattr(self, name)
906 return {}
907 # Try the base class attribute getter (fix for issue 332)
--> 908 return object.__getattribute__(self, name)

AttributeError: 'FileDataset' object has no attribute 'FovealSensitivityMeasured'

I just wonder if I have done anything wrong or there is any error in my own files
sorry I'm not good at coding but Thank you for your kindness:)
gaew

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