KeyError: 'X Metrics' at FieldProfileAnalysis

What version of pylinac are you using (pylinac.__version__)?

pylinac 3.25.0

I’ve read the documentation for this module? (Yes/No/Doesn’t Exist)

Yes, there’s no visible solution for this issue.

When applying FieldProfileAnalysis to my .dcm file it shows a KeyError called ‘X Metrics’, I tried to solve it by making some changes with the “Customizing Metrics” options but it finally showed that it can be solved by editing field_profile_analysis.py file at lines 414 and 415 and changing the names of the dictionaries to the original ones.

    data["X Metrics"].pop("values")
    data["Y Metrics"].pop("values")

Solution:

    data["x_metrics"].pop("values")
    data["y_metrics"].pop("values")