From 70158432aa7924e7a48e439b5809af3f257d3339 Mon Sep 17 00:00:00 2001 From: Joseph Madamesila Date: Mon, 4 May 2020 14:54:21 -0600 Subject: [PATCH 1/3] Fixed old mtf method name from "relative_resolution_to", to new name "relative_resolution" --- pylinac/ct.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pylinac/ct.py b/pylinac/ct.py index fef7a61c..f0248c85 100644 --- a/pylinac/ct.py +++ b/pylinac/ct.py @@ -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}') @@ -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')) @@ -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') From be21ec33dff312129d53f1b81d09cea6261d385d Mon Sep 17 00:00:00 2001 From: Joseph Madamesila Date: Mon, 4 May 2020 15:00:54 -0600 Subject: [PATCH 2/3] Fixed old mtf method name from "relative_resolution_to", to new name "relative_resolution" --- .idea/workspace.xml | 224 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 224 insertions(+) create mode 100644 .idea/workspace.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 00000000..e1dd7088 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,224 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1588619621288 + + + 1588622923112 + + + 1588623058577 + + + 1588624890079 + + + 1588625106728 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From b20e341baa4c8cd2c6abb12c67986d19596f65a8 Mon Sep 17 00:00:00 2001 From: Joseph Madamesila Date: Mon, 4 May 2020 15:13:12 -0600 Subject: [PATCH 3/3] Deleted workspace.xml --- .idea/workspace.xml | 224 -------------------------------------------- 1 file changed, 224 deletions(-) delete mode 100644 .idea/workspace.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index e1dd7088..00000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1588619621288 - - - 1588622923112 - - - 1588623058577 - - - 1588624890079 - - - 1588625106728 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file