Skip to content

Commit 5f4a8da

Browse files
committed
EHSTPCR-1181: fix for get_datalabs_path
1 parent e35220b commit 5f4a8da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

astroquery/esa/hubble/core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,10 @@ def get_datalabs_path(self, filename, default_volume=None):
10181018
The complete path of the file name in Datalabs
10191019
"""
10201020

1021+
# FITS files are always compressed
1022+
if filename.endswith('.fits'):
1023+
filename = f"{filename}.gz"
1024+
10211025
query = f"select file_path from ehst.artifact where file_name = '{filename}'"
10221026
job = self.query_tap(query=query)
10231027
if job is None:

0 commit comments

Comments
 (0)