We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pylinac/pylinac/field_profile_analysis.py
Lines 418 to 419 in ba981b4
In Pylinac 3.29, when trying to publish a pdf of an open flat field with the FieldProfileAnalysis module the following error is produced.
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) Cell In[3], [line 4](vscode-notebook-cell:?execution_count=3&line=4) [2](vscode-notebook-cell:?execution_count=3&line=2) OFanalysis.analyze() [3](vscode-notebook-cell:?execution_count=3&line=3) print(OFanalysis.results()) ----> [4](vscode-notebook-cell:?execution_count=3&line=4) OFanalysis.publish_pdf(os.path.join(os.getcwd(), 'OpenFieldProfile.pdf')) File c:\Users\cody.crewson\Source\Github\Jupyter-Workspaces\.venv\Lib\site-packages\pylinac\field_profile_analysis.py:414, in FieldProfileAnalysis.publish_pdf(self, filename, notes, open_file, metadata, logo, plot_kwargs) [410](file:///C:/Users/cody.crewson/Source/Github/Jupyter-Workspaces/.venv/Lib/site-packages/pylinac/field_profile_analysis.py:410) data = self.results_data( [411](file:///C:/Users/cody.crewson/Source/Github/Jupyter-Workspaces/.venv/Lib/site-packages/pylinac/field_profile_analysis.py:411) as_dict=True, by_alias=True, exclude={"pylinac_version"} [412](file:///C:/Users/cody.crewson/Source/Github/Jupyter-Workspaces/.venv/Lib/site-packages/pylinac/field_profile_analysis.py:412) ) [413](file:///C:/Users/cody.crewson/Source/Github/Jupyter-Workspaces/.venv/Lib/site-packages/pylinac/field_profile_analysis.py:413) # drop values; that's too much info --> [414](file:///C:/Users/cody.crewson/Source/Github/Jupyter-Workspaces/.venv/Lib/site-packages/pylinac/field_profile_analysis.py:414) data["X Metrics"].pop("values") [415](file:///C:/Users/cody.crewson/Source/Github/Jupyter-Workspaces/.venv/Lib/site-packages/pylinac/field_profile_analysis.py:415) data["Y Metrics"].pop("values") [416](file:///C:/Users/cody.crewson/Source/Github/Jupyter-Workspaces/.venv/Lib/site-packages/pylinac/field_profile_analysis.py:416) offset = 0 KeyError: 'X Metrics'
The text was updated successfully, but these errors were encountered:
Fix for jrkerns#530
fd7ede9
Possible solution for jrkerns#530
6b76c5d
No branches or pull requests
pylinac/pylinac/field_profile_analysis.py
Lines 418 to 419 in ba981b4
In Pylinac 3.29, when trying to publish a pdf of an open flat field with the FieldProfileAnalysis module the following error is produced.
The text was updated successfully, but these errors were encountered: