Skip to content
New issue

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

AttributeError: 'MTF' object has no attribute 'relative_resolution_at' (V2.3.0) #282

Closed
AlainSottiaux opened this issue May 5, 2020 · 1 comment

Comments

@AlainSottiaux
Copy link

Hello James,

I just upgrade to V2.3.0 (from 2.2.6)
Catphan analysis (catphan504, from zip)
When trying to geneate pdf for results, I got:
File "(...)\lib\site-packages\pylinac\ct.py", line 1182, in publish_pdf
f'MTF 80% (lp/mm): {self.ctp528.mtf.relative_resolution_at(80):2.2f}',
AttributeError: 'MTF' object has no attribute 'relative_resolution_at'

same if I call results() instead of publish_pdf

when I try to change core\mtf.py line 43 from
def relative_resolution(self, x=50):
to
def relative_resolution_at(self, x=50):
it runs without error

Alain

@jrkerns
Copy link
Owner

jrkerns commented May 5, 2020

Yup, fixed in #281. Will release a 2.3.1 today.

@jrkerns jrkerns closed this as completed May 5, 2020
jrkerns added a commit that referenced this issue Oct 30, 2023
numpy overflow/underflow errors

Approved-by: Randy Taylor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants