Skip to content

Commit

Permalink
added cache to fit parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jrkerns committed Feb 14, 2016
1 parent c16601c commit a12e1d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pylinac/picketfence.py
Expand Up @@ -374,6 +374,7 @@ def return_results(self):
return string

@property
@lru_cache(maxsize=1)
def orientation(self):
"""The orientation of the image, either Up-Down or Left-Right."""
# replace any dead pixels with median value
Expand Down Expand Up @@ -666,6 +667,7 @@ def mlc_passed_action(self, mlc):
raise AttributeError("No action tolerance was specified")

@property
@lru_cache(maxsize=2)
def fit(self):
"""The fit of a polynomial to the MLC measurements."""
if self.settings.log_fits is not None:
Expand Down

0 comments on commit a12e1d3

Please sign in to comment.