From 6ffdcd7666486238f14890266298bab4efd95250 Mon Sep 17 00:00:00 2001 From: Duy Nguyen Date: Tue, 23 Jul 2024 14:14:53 -0400 Subject: [PATCH] Switch to direct URL loading --- .../configs/default/plugins/virtual_observatory/vo_plugin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jdaviz/configs/default/plugins/virtual_observatory/vo_plugin.py b/jdaviz/configs/default/plugins/virtual_observatory/vo_plugin.py index 0667b63574..ffa71e59fb 100644 --- a/jdaviz/configs/default/plugins/virtual_observatory/vo_plugin.py +++ b/jdaviz/configs/default/plugins/virtual_observatory/vo_plugin.py @@ -1,6 +1,5 @@ from astropy.coordinates.builtin_frames import __all__ as all_astropy_frames from astropy.coordinates import SkyCoord -from astropy.io import fits from astropy import units as u from pyvo.utils import vocabularies @@ -302,7 +301,7 @@ def vue_load_selected_data(self, _=None): for entry in self.table.selected_rows: try: self.app._jdaviz_helper.load_data( - fits.open(str(entry["URL"])), # Open URL as FITS object + str(entry["URL"]), # Open URL as FITS object data_label=f"{self.source}_{self.resource_selected}_{entry.get('Title', entry.get('URL', ''))}", # noqa: E501 ) except Exception as e: