cutright / DVHA-MLCA

MLC Analyzer from DVHA as a Stand-Alone Script
Other
7 stars 3 forks source link

AttributeError: 'Dataset' object has no attribute 'BeamMeterset' #6

Open medphys96 opened 3 years ago

medphys96 commented 3 years ago

Hi, When I try to analyze a DICOM RT Plan file, I get this error:

AttributeError: 'Dataset' object has no attribute 'BeamMeterset'

I have Windows 10, I use spyder(anaconda3) via console and here is the error that I get:

Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information.

IPython 7.19.0 -- An enhanced Interactive Python.

from mlca.mlc_analyzer import Plan

plan = Plan (r'C:\Users\user\Desktop\RP.1.2.246.352.71.5.456301677130.131406.20210910084808.dcm') Traceback (most recent call last):

File "", line 1, in plan = Plan (r'C:\Users\user\Desktop\RP.1.2.246.352.71.5.456301677130.131406.20210910084808.dcm')

File "C:\Users\user\anaconda3\lib\site-packages\mlca\mlc_analyzer.py", line 178, in init self.fx_group = [FxGroup(fx_grp, beam_seq) for fx_grp in fx_grp_seq]

File "C:\Users\user\anaconda3\lib\site-packages\mlca\mlc_analyzer.py", line 178, in self.fx_group = [FxGroup(fx_grp, beam_seq) for fx_grp in fx_grp_seq]

File "C:\Users\user\anaconda3\lib\site-packages\mlca\mlc_analyzer.py", line 365, in init meter_set[ref_beam_num] = float(ref_beam.BeamMeterset)

File "C:\Users\user\anaconda3\lib\site-packages\pydicom\dataset.py", line 836, in getattr return object.getattribute(self, name)

AttributeError: 'Dataset' object has no attribute 'BeamMeterset'

Could anyone let me know how to fix this issue?

Best Regards