Skip to content

Commit

Permalink
remove references to good_columns
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Jan 17, 2017
1 parent daf8219 commit 0bcd309
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pydl/pydlspec2d/spec1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ def spec_path(plate, path=None, topdir=None, run2d=None):

def preprocess_spectra(flux, ivar, loglam=None, zfit=None, aesthetics='mean',
newloglam=None, wavemin=None, wavemax=None,
good_columns=False, verbose=False):
verbose=False):
"""Handle the processing of input spectra through the
:func:`~pydl.pydlspec2d.spec2d.combine1fiber` stage.
Expand All @@ -1231,9 +1231,6 @@ def preprocess_spectra(flux, ivar, loglam=None, zfit=None, aesthetics='mean',
Minimum wavelength if `newloglam` is not specified.
wavemax : :class:`float`, optional
Maximum wavelength if `newloglam` is not specified.
good_columns : :class:`bool`, optional
If ``True``, ensure that the data contain no columns that are
all zero.
verbose : :class:`bool`, optional
If ``True``, print extra information.
Expand Down Expand Up @@ -1352,9 +1349,7 @@ def template_metadata(inputfile, verbose=False):
except KeyError:
metadata['orig_'+r] = None
os.environ[r.upper()] = metadata[r]
good_columns = False
if metadata['method'].lower() == 'hmf':
good_columns = True
required_hmf_metadata = {'nonnegative': lambda x: bool(int(x)),
'epsilon': float}
for key in required_hmf_metadata:
Expand Down Expand Up @@ -1483,7 +1478,6 @@ def template_input(inputfile, dumpfile, flux=False, verbose=False):
zfit=zfit,
newloglam=newloglam,
aesthetics=metadata['aesthetics'],
good_columns=good_columns,
verbose=verbose)
#
# Dump input fluxes to a file for debugging purposes.
Expand Down

0 comments on commit 0bcd309

Please sign in to comment.