Skip to content

Commit e41d456

Browse files
author
Javier Duran
committed
Fixing issue with rmf link
1 parent 6d63788 commit e41d456

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

astroquery/esa/xmm_newton/core.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ def __init__(self, tap_handler=None):
4444
"/tap-server/tap/")
4545
else:
4646
self._tap = tap_handler
47-
self._rmf_ftp = str("http://sasdev-xmm.esac.esa.int/"
48-
"pub/ccf/constituents/extras/responses/")
47+
self._rmf_ftp = str("http://sasdev-xmm.esac.esa.int/pub/ccf/constituents/extras/responses/")
4948

5049
def download_data(self, observation_id, *, filename=None, verbose=False,
5150
**kwargs):
@@ -303,7 +302,7 @@ def _parse_filename(self, filename):
303302
return ret
304303

305304
def get_epic_spectra(self, filename, source_number, *,
306-
instrument=[], path=""):
305+
instrument=[], path="", verbose=False):
307306
"""Extracts the EPIC sources spectral products from a given TAR file
308307
For a given TAR file obtained with:
309308
XMM.download_data(OBS_ID,level="PPS",extension="FTZ",filename=tarfile)
@@ -330,6 +329,10 @@ def get_epic_spectra(self, filename, source_number, *,
330329
An array of strings indicating the desired instruments
331330
path: string, optional
332331
If set, extracts the EPIC images in the indicated path
332+
verbose : bool
333+
optional, default 'False'
334+
flag to display information about the process
335+
333336
Returns
334337
-------
335338
A dictionary with the full paths of the extracted EPIC sources
@@ -398,6 +401,9 @@ def get_epic_spectra(self, filename, source_number, *,
398401

399402
link = self._rmf_ftp + inst + rmf_fname
400403

404+
if verbose:
405+
log.info("rmf link is: %s" % link)
406+
401407
response = self._request('GET', link)
402408

403409
rsp_filename =\

0 commit comments

Comments
 (0)