Skip to content

Commit 3dcc3b2

Browse files
Jorge Fernandez HernandezJorge Fernandez Hernandez
authored andcommitted
EUCLIDPCR-1863 Make the parameter source_id compulsory in the method get_spectrum
1 parent 8f7d224 commit 3dcc3b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

astroquery/esa/euclid/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,15 +1143,15 @@ def get_cutout(self, *, file_path=None, instrument=None, id=None, coordinate, ra
11431143

11441144
return files
11451145

1146-
def get_spectrum(self, *, source_id=None, schema='sedm', output_file=None, verbose=False):
1146+
def get_spectrum(self, *, source_id, schema='sedm', output_file=None, verbose=False):
11471147
"""
11481148
Description
11491149
-----------
11501150
Downloads a spectrum with datalink.
11511151
11521152
The spectrum associated to the source_id is downloaded as fits file, and returned in a list. The file is
11531153
saved in the local path given by output_file. If this parameter is not set, the result is saved in the
1154-
directory <working directory>/temp_"%Y%m%d_%H%M%S"
1154+
file <working directory>/temp_<%Y%m%d_%H%M%S>/<source_id>.fits
11551155
11561156
Parameters
11571157
----------
@@ -1161,7 +1161,7 @@ def get_spectrum(self, *, source_id=None, schema='sedm', output_file=None, verbo
11611161
the data release, 'sedm'
11621162
output_file : str, optional
11631163
output file name. If no value is provided, a temporary one is created with the name
1164-
<working directory>/temp_"%Y%m%d_%H%M%S"/<source_id>.fits
1164+
<working directory>/temp_<%Y%m%d_%H%M%S>/<source_id>.fits
11651165
verbose : bool, optional, default 'False'
11661166
flag to display information about the process
11671167

0 commit comments

Comments
 (0)