Remove print cache
This commit is contained in:
parent
da6a43364b
commit
c55f127a3c
|
@ -16,7 +16,7 @@ def power_cache(fun):
|
||||||
"""Decorator which cache calculated powers of polynoms """
|
"""Decorator which cache calculated powers of polynoms """
|
||||||
cache = {}
|
cache = {}
|
||||||
def cached_fun(self, power):
|
def cached_fun(self, power):
|
||||||
print("cache -> ", cache)
|
#print("cache -> ", cache)
|
||||||
if (tuple(self._coef), power) in cache.keys():
|
if (tuple(self._coef), power) in cache.keys():
|
||||||
return cache[(tuple(self._coef), power)]
|
return cache[(tuple(self._coef), power)]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue