Skip to content

Commit

Permalink
Merge pull request #281 from jmadamesila/catphan_mtf_bug
Browse files Browse the repository at this point in the history
Fixed old mtf method name from "relative_resolution_to", to new name …
  • Loading branch information
jrkerns committed May 4, 2020
2 parents 199e05f + b20e341 commit 503a4f0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pylinac/ct.py
Expand Up @@ -1038,7 +1038,7 @@ def _results(self):
print(f"Origin slice: {self.find_origin_slice()}")
mtfs = {}
for mtf in (95, 90, 80, 50, 30):
mtfval = self.ctp528.mtf.relative_resolution_at(mtf)
mtfval = self.ctp528.mtf.relative_resolution(mtf)
mtfs[mtf] = mtfval
print(f'MTFs: {mtfs}')

Expand Down Expand Up @@ -1179,9 +1179,9 @@ def publish_pdf(self, filename: str, notes: str=None, open_file: bool=False, met
module_images = [('hu', 'lin')]
if CTP528 in self.modules:
add = [' - CTP528 Results - ',
f'MTF 80% (lp/mm): {self.ctp528.mtf.relative_resolution_at(80):2.2f}',
f'MTF 50% (lp/mm): {self.ctp528.mtf.relative_resolution_at(50):2.2f}',
f'MTF 30% (lp/mm): {self.ctp528.mtf.relative_resolution_at(30):2.2f}',
f'MTF 80% (lp/mm): {self.ctp528.mtf.relative_resolution(80):2.2f}',
f'MTF 50% (lp/mm): {self.ctp528.mtf.relative_resolution(50):2.2f}',
f'MTF 30% (lp/mm): {self.ctp528.mtf.relative_resolution(30):2.2f}',
]
module_texts.append(add)
module_images.append(('sp', 'mtf'))
Expand Down Expand Up @@ -1291,7 +1291,7 @@ def results(self):
f'Uniformity Passed?: {self.ctp486.overall_passed}\n')
string += add
if CTP528 in self.modules:
add = (f'MTF 50% (lp/mm): {self.ctp528.mtf.relative_resolution_at(50):2.2f}\n')
add = (f'MTF 50% (lp/mm): {self.ctp528.mtf.relative_resolution(50):2.2f}\n')
string += add
if CTP515 in self.modules:
add = (f'Low contrast ROIs "seen": {self.ctp515.rois_visible}\n')
Expand Down

0 comments on commit 503a4f0

Please sign in to comment.