Skip to content

Commit

Permalink
Switch to direct URL loading
Browse files Browse the repository at this point in the history
  • Loading branch information
duytnguyendtn committed Jul 23, 2024
1 parent cd73c0e commit 6ffdcd7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 6ffdcd7

Please sign in to comment.