Skip to content

Program crashing when clicking on RTPLAN for external beam planning #7

@tsiligardi

Description

@tsiligardi

When clicking on RTPLAN (External beam planning), the program crashes with error:
File "Z:\amigopy\Launch_ImGUI.py", line 186, in
self.DataTreeView.clicked.connect(lambda index: on_DataTreeView_clicked(self, index))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "Z:\amigopy\fcn_display\Data_tree_general.py", line 164, in on_DataTreeView_clicked
Window = self.dicom_data[self.patientID][self.studyID][self.modality][self.series_index]['metadata']['WindowWidth']
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'WindowWidth'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions