From d4ba51e5c125a372532e03424fc90beac08ef60f Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Tue, 21 Nov 2023 10:22:43 -0500 Subject: [PATCH] Add error message to skimage import warning --- acstools/utils_findsat_mrt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acstools/utils_findsat_mrt.py b/acstools/utils_findsat_mrt.py index cdaa87a..51637cd 100644 --- a/acstools/utils_findsat_mrt.py +++ b/acstools/utils_findsat_mrt.py @@ -20,8 +20,8 @@ from skimage import transform from skimage.transform._warps import warp from skimage._shared.utils import convert_to_float -except ImportError: - warnings.warn('skimage not installed. MRT calculation will not work.') +except ImportError as e: + warnings.warn(f'skimage not installed. MRT calculation will not work: {repr(e)}') # check for scipy try: