I got the error when execute to store the result
field_analyzer.publish_pdf('p.pdf')
Traceback (most recent call last):
File "D:\EXCEL HEALTH CARE\python_file\research\py_linac_files\Filed_profile_analysis.py", line 27, in <module>
field_analyzer.publish_pdf('p.pdf')
File "C:\Users\Admin\PycharmProjects\PythonProject1\.venv1\Lib\site-packages\pylinac\core\warnings.py", line 43, in wrapper
result = method(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\PycharmProjects\PythonProject1\.venv1\Lib\site-packages\pylinac\field_profile_analysis.py", line 418, in publish_pdf
data["X Metrics"].pop("values")
~~~~^^^^^^^^^^^^^
KeyError: 'X Metrics'
Suggest me the actual syntax!!