Skip to content

Commit

Permalink
syntax error for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
JarronL committed Feb 21, 2018
1 parent 86806ba commit 52fca77
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions pynrc/nrc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3104,8 +3104,7 @@ def BOSZ_spectrum(Teff, metallicity, log_g, res=2000, interpolate=True, **kwargs

return sp

def stellar_spectrum(sptype, *renorm_args,
Teff=None, metallicity=None, log_g=None, **kwargs):
def stellar_spectrum(sptype, *renorm_args, **kwargs):
"""Stellar spectrum
Similar to specFromSpectralType() in WebbPSF/Poppy, this function uses
Expand Down Expand Up @@ -3150,13 +3149,17 @@ def stellar_spectrum(sptype, *renorm_args,
log_g : float
Surface gravity (log g) from 0 to 5.
res : str
Spectral resolution to use (200 or 2000 or 20000).
BOSZ spectral resolution to use (200 or 2000 or 20000).
interpolate : bool
Interpolate spectrum using a weighted average of grid points
surrounding the desired input parameters.
Interpolate BOSZ spectrum using a weighted average of grid points
surrounding the desired input parameters. Default is True.
"""

Teff = kwargs.pop('Teff', None)
metallicity = kwargs.pop('metallicity', None)
log_g = kwargs.pop('log_g', None)

catname = kwargs.get('catname')
if catname is None: catname = 'bosz'
lookuptable = {
Expand Down

0 comments on commit 52fca77

Please sign in to comment.