Skip to content

KeyError: 'voxel_coordinate_XYZ_mm' in ECHO-VMAT/examples /echo_vmat_portpy.ipynb notebook #1

@stefan-kolling-seetreat

Description

Hi there,

I'm trying to get started with using your ECHO-VMAT implementation by following the echo_vmat_portpy.ipynb example notebook for patient ID Lung_Patient_4.

Unfortunately, the script always runs into a KeyError: 'voxel_coordinate_XYZ_mm' in line 658 of the get_dfo_parameters() function in echo_vmat_optimization_col_gen.py. I have understood that the key voxel_coordinate_XYZ_mm does not exist in self.inf_matrix.opt_voxels_dict, which is created from the Lung_Patient_4/OptimizationVoxels_MetaData.json file. There is no line relating to voxel_coordinate_XYZ_mm in this file, which I downloaded from your Google Drive dataset folder (https://drive.google.com/drive/folders/1nA1oHEhlmh2Hk8an9e0Oi0ye6LRPREit). However, by going through your PortPy repository on GitHub I found that you uploaded an updated version of the Lung_Patient_4/OptimizationVoxels_MetaData.json file, now including a new line "voxel_coordinate_XYZ_mm_File": "OptimizationVoxels_Data.h5/voxel_coordinate_XYZ_mm",. I replicated this change in my local file, but the error persists. What I've noticed by opening OptimizationVoxels_Data.h5 directly is that it doesn't seem to contain a voxel_coordinate_XYZ_mm (but only a ct_to_dose_voxel_map). Hence, I suppose that this might be the source of the error, but I couldn't find any updated OptimizationVoxels_Data.h5 file for patient Lung_Patient_4 anywhere.

Could you be so nice as to clarify whether I am on the right track and give advice on how to solve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions