Skip to content

Commit

Permalink
Closes #388
Browse files Browse the repository at this point in the history
  • Loading branch information
jrkerns committed May 11, 2021
1 parent d5f8d73 commit d748dea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pylinac/planar_imaging.py
Expand Up @@ -362,6 +362,7 @@ def results(self) -> str:
f'MTF 50% (lp/mm): {self.mtf.relative_resolution(50):2.2f}',
f'MTF 30% (lp/mm): {self.mtf.relative_resolution(30):2.2f}',
]
text = '\n'.join(text)
return text

def publish_pdf(self, filename: str, notes: str=None, open_file: bool=False, metadata: Optional[dict]=None):
Expand Down
2 changes: 1 addition & 1 deletion tests_basic/test_planar_imaging.py
Expand Up @@ -54,7 +54,7 @@ def test_mtf(self):
self.assertAlmostEqual(self.mtf_50, self.instance.mtf.relative_resolution(50), delta=0.3)

def test_results(self):
self.instance.results()
self.assertIsInstance(self.instance.results(), str)


class LeedsDemo(PlanarPhantomMixin, TestCase):
Expand Down

0 comments on commit d748dea

Please sign in to comment.