Skip to content

Commit 56ce69b

Browse files
cppartsbmatthieu3
authored andcommitted
allowing overlay options for graphic overlays from stcs strings to pass through to aladin-lite, noqa changes to ignore PLC0415
1 parent 68a538b commit 56ce69b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/ipyaladin/widget.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def get_view_as_fits(self) -> HDUList:
549549
550550
"""
551551
try:
552-
from astroquery.hips2fits import hips2fits
552+
from astroquery.hips2fits import hips2fits # noqa: PLC0415
553553
except ImportError as imp:
554554
raise ValueError(
555555
"To use 'get_view_as_fits', you need astroquery. "
@@ -670,7 +670,7 @@ def add_moc(self, moc: any, **moc_options: any) -> None:
670670
)
671671
else:
672672
try:
673-
from mocpy import MOC
673+
from mocpy import MOC # noqa: PLC0415
674674

675675
if isinstance(moc, MOC):
676676
self.send(
@@ -877,7 +877,7 @@ def add_graphic_overlay_from_region(
877877
"See the documentation for the supported region types."
878878
)
879879

880-
from .utils._region_converter import RegionInfos
880+
from .utils._region_converter import RegionInfos # noqa: PLC0415
881881

882882
# Define behavior for each region type
883883
regions_infos.append(RegionInfos(region_element).to_clean_dict())
@@ -951,7 +951,7 @@ def add_graphic_overlay_from_stcs(
951951
{
952952
"event_name": "add_overlay",
953953
"regions_infos": regions_infos,
954-
"graphic_options": {},
954+
"graphic_options": overlay_options,
955955
}
956956
)
957957

0 commit comments

Comments
 (0)