From 4e17f4053486f002e75806348cab6154aec68ad0 Mon Sep 17 00:00:00 2001 From: Thibault Barnouin Date: Wed, 22 May 2024 11:00:26 +0200 Subject: [PATCH] temp fix for ModuleNotFound error in lib.plots --- src/lib/plots.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/plots.py b/src/lib/plots.py index 3386c41..dcde2be 100755 --- a/src/lib/plots.py +++ b/src/lib/plots.py @@ -55,7 +55,10 @@ from astropy.wcs import WCS from astropy.io import fits from astropy.coordinates import SkyCoord from scipy.ndimage import zoom as sc_zoom -from utils import rot2D, princ_angle, sci_not +try: + from utils import rot2D, princ_angle, sci_not +except ModuleNotFoundError: + from lib.utils import rot2D, princ_angle, sci_not def plot_obs(data_array, headers, rectangle=None, savename=None, plots_folder="", **kwargs):