Skip to content

Commit

Permalink
remove lru cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed May 13, 2024
1 parent 651b8c7 commit a7f088e
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 135 deletions.
12 changes: 0 additions & 12 deletions compliance_checker/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from owslib.swe.observation.sos100 import SensorObservationService_1_0_0
from owslib.swe.sensor.sml import SensorML

import compliance_checker.cfutil as cfutil
from compliance_checker import __version__
from compliance_checker.util import kvp_convert

Expand Down Expand Up @@ -185,17 +184,6 @@ def get_test_ctx(self, severity, name, variable=None):
)
return self._defined_results[name][variable][severity]

def __del__(self):
"""
Finalizer. Ensure any caches shared by multiple checkers
are cleared before the next checker uses it. Some caches were
inadvertently mutated by other functions.
"""

if cfutil is not None:
cfutil.get_geophysical_variables.cache_clear()
cfutil.get_time_variables.cache_clear()


class BaseNCCheck:
"""
Expand Down
Loading

0 comments on commit a7f088e

Please sign in to comment.