Hoe to save the result from Filed Profile Analysis in pdf

19 views
Skip to first unread message

Sougou Marane

unread,
Jul 21, 2025, 6:28:18 AMJul 21
to Pylinac
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!!

tbe...@gmail.com

unread,
Jul 24, 2025, 6:54:39 AMJul 24
to Pylinac
Hi,

there is a bug report in github with a merged pull request:

so it might help to update pylinac to the latest version or wait till the next version is released.

regards,

Thomas

Sougou Marane

unread,
Jul 31, 2025, 3:35:13 AMJul 31
to Pylinac
hi,
can I do analysis the Dosimetric Leaf Gap( DLG) using pylinac??

Reply all
Reply to author
Forward
0 new messages