From c91fbf584f9a72de8349ee0607962c7fe8568f7d Mon Sep 17 00:00:00 2001 From: Alan Loh Date: Tue, 6 Feb 2024 11:02:00 +0100 Subject: [PATCH] Removed the log decorator feature that is not super useful and makes python > 3.10 crashes (#68) --- nenupy/__init__.py | 2 +- nenupy/instru/interferometer.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nenupy/__init__.py b/nenupy/__init__.py index e1f357a..f4ff6a1 100644 --- a/nenupy/__init__.py +++ b/nenupy/__init__.py @@ -5,7 +5,7 @@ __copyright__ = "Copyright 2023, nenupy" __credits__ = ["Alan Loh"] __license__ = "MIT" -__version__ = "2.6.7" +__version__ = "2.6.8" __maintainer__ = "Alan Loh" __email__ = "alan.loh@obspm.fr" diff --git a/nenupy/instru/interferometer.py b/nenupy/instru/interferometer.py index b4e941b..ed95e2f 100644 --- a/nenupy/instru/interferometer.py +++ b/nenupy/instru/interferometer.py @@ -43,7 +43,7 @@ import dask.array as da from dask.diagnostics import ProgressBar -from nenupy import LogMethodMetaClass, DummyCtMgr +# from nenupy import LogMethodMetaClass, DummyCtMgr from nenupy.astro.sky import Sky from nenupy.astro.astro_tools import sky_temperature from nenupy.astro.pointing import Pointing @@ -52,8 +52,8 @@ # ============================================================= # # ---------------- Interferometer class errors ---------------- # # ============================================================= # -class CombinedMeta(LogMethodMetaClass, ABCMeta): - """ Intermediate metaclass when inheriting from ABC. """ +# class CombinedMeta(LogMethodMetaClass, ABCMeta): +# """ Intermediate metaclass when inheriting from ABC. """ class AntennaNameError(Exception): @@ -173,7 +173,7 @@ class ObservingMode(Enum): # ============================================================= # # ---------------------- Interferometer ----------------------- # # ============================================================= # -class Interferometer(ABC, metaclass=CombinedMeta): +class Interferometer(ABC):#, metaclass=CombinedMeta): """ Abstract base class for all phased-array/interferometer classes. .. rubric:: Attributes Summary