From 3b3f0a18235633b1fe9fa4791029d01f48622c1a Mon Sep 17 00:00:00 2001 From: Artur Glavic Date: Mon, 6 Oct 2025 17:00:43 +0200 Subject: [PATCH] ignore that cache decorator does not exisit in python 3.8 --- eos/instrument.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/eos/instrument.py b/eos/instrument.py index 29701a0..d5a24ba 100644 --- a/eos/instrument.py +++ b/eos/instrument.py @@ -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