Skip to content

Commit

Permalink
fix some missing variables
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Jun 21, 2023
1 parent 49011e2 commit d41b80b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pydl/pydlspec2d/spec1d.py
Expand Up @@ -522,7 +522,7 @@ def findspec(*args, **kwargs):
if 'print' in kwargs:
foo = struct_print(slist)
if 'outfile' in kwargs:
foo = struct_print(slist, filename=outfile)
foo = struct_print(slist, filename=kwargs['outfile'])
return slist


Expand Down Expand Up @@ -1420,7 +1420,7 @@ def template_input(inputfile, dumpfile, flux=False, verbose=False):
# be a safe assumption in the future.
#
try:
objdloglam = float(par['binsz'])
objdloglam = float(metadata['binsz'])
except:
objdloglam = spplate['loglam'][0, 1] - spplate['loglam'][0, 0]
if metadata['object'].lower() == 'star':
Expand Down Expand Up @@ -1675,7 +1675,7 @@ def template_qso(metadata, newflux, newivar, verbose=False):
nobj, npix = newflux.shape
objflux = newflux.copy()
for ikeep in range(metadata['nkeep']):
log.info("Solving for eigencomponent #%d of %d", ikeep+1, nkeep)
log.info("Solving for eigencomponent #%d of %d", ikeep+1, metadata['nkeep'])
if metadata['method'].lower() == 'pca':
pcaflux1 = pca_solve(objflux, newivar,
niter=metadata['niter'], nkeep=1,
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Expand Up @@ -78,6 +78,7 @@ changedir = docs
description = invoke sphinx-build to build the HTML docs
extras = docs
commands =
python --version
pip freeze
sphinx-build -W --keep-going -b html . _build/html

Expand All @@ -86,6 +87,7 @@ changedir = docs
description = check the links in the HTML docs
extras = docs
commands =
python --version
pip freeze
sphinx-build -W --keep-going -b linkcheck . _build/html

Expand Down

0 comments on commit d41b80b

Please sign in to comment.