ignore that cache decorator does not exisit in python 3.8

This commit is contained in:
2025-10-06 17:00:43 +02:00
parent 20122eb32e
commit 3b3f0a1823
+7 -2
View File
@@ -3,12 +3,17 @@ Classes describing the AMOR instrument configuration used during reduction.
"""
import logging
from functools import cache
import numpy as np
from . import const
try:
from functools import cache
except ImportError:
# python <3.9
def cache(func): return func
class Detector:
nBlades = 14 # number of active blades in the detector
nWires = 32 # number of wires per blade