From 66e3163a219c25ba7ac21b4ccc660e5c8b5bedd3 Mon Sep 17 00:00:00 2001 From: Xen0Xys Date: Mon, 13 May 2024 15:56:12 +0200 Subject: [PATCH] Temp --- src/ipyaladin/aladin.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ipyaladin/aladin.py b/src/ipyaladin/aladin.py index f940eca8..9021f695 100644 --- a/src/ipyaladin/aladin.py +++ b/src/ipyaladin/aladin.py @@ -15,7 +15,13 @@ from astropy.table import Table from astropy.coordinates import SkyCoord, Angle import traitlets -from regions import CircleSkyRegion, EllipseSkyRegion, LineSkyRegion + +try: + from regions import CircleSkyRegion, EllipseSkyRegion, LineSkyRegion +except ImportError: + CircleSkyRegion = None + EllipseSkyRegion = None + LineSkyRegion = None from traitlets import ( Float, Int,