Skip to content

Commit

Permalink
Apply @jkrick review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
troyraen committed Dec 11, 2024
1 parent 2e26477 commit 7706496
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions spectroscopy/code_src/mast_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
def JWST_get_spec(sample_table, search_radius_arcsec, datadir, verbose,
delete_downloaded_data=True):
"""
Retrieve HST spectra for a list of sources and groups/stacks them.
Retrieve JWST spectra for a list of sources and groups/stacks them.
This main function runs two sub-functions:
- `JWST_get_spec_helper()` which searches, downloads, retrieves the spectra.
- `JWST_group_spectra()` which groups and stacks the spectra.
Expand All @@ -31,7 +31,7 @@ def JWST_get_spec(sample_table, search_radius_arcsec, datadir, verbose,
Search radius in arcseconds.
datadir : str
Data directory where to store the data. Each function will create a
separate data directory (for example "[datadir]/HST/" for HST data).
separate data directory (for example "[datadir]/JWST/" for JWST data).
verbose : bool
Verbosity level. Set to True for extra talking.
delete_downloaded_data : bool, optional
Expand Down Expand Up @@ -60,7 +60,7 @@ def JWST_get_spec(sample_table, search_radius_arcsec, datadir, verbose,
def JWST_get_spec_helper(sample_table, search_radius_arcsec, datadir, verbose,
delete_downloaded_data=True):
"""
Retrieve HST spectra for a list of sources.
Retrieve JWST spectra for a list of sources.
Parameters
----------
Expand All @@ -70,7 +70,7 @@ def JWST_get_spec_helper(sample_table, search_radius_arcsec, datadir, verbose,
Search radius in arcseconds.
datadir : str
Data directory where to store the data. Each function will create a
separate data directory (for example "[datadir]/HST/" for HST data).
separate data directory (for example "[datadir]/JWST/" for JWST data).
verbose : bool
Verbosity level. Set to True for extra talking.
delete_downloaded_data : bool, optional
Expand Down
4 changes: 2 additions & 2 deletions spectroscopy/code_src/spitzer_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

def SpitzerIRS_get_spec(sample_table, search_radius_arcsec, COMBINESPEC):
"""
Retrieve HST spectra for a list of sources.
Retrieve Spitzer spectra for a list of sources.
Parameters
----------
Expand Down Expand Up @@ -53,7 +53,7 @@ def SpitzerIRS_get_spec(sample_table, search_radius_arcsec, COMBINESPEC):
print(" - pick the closest")
sep = [search_coords.separation(SkyCoord(tt["ra"], tt["dec"], unit=u.deg, frame='icrs')).to(
u.arcsecond).value for tt in tab]
id_min = np.where(sep == np.nanmin(sep))[0]
id_min = np.nanargmin(sep)
tab_final = tab[id_min]
else:
print(" - Combine spectra")
Expand Down

0 comments on commit 7706496

Please sign in to comment.