Skip to content

Commit

Permalink
Merge 6a34c38 into bc47905
Browse files Browse the repository at this point in the history
  • Loading branch information
nmearl committed Sep 13, 2019
2 parents bc47905 + 6a34c38 commit ec39acf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion specutils/spectra/spectrum1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,15 @@ class Spectrum1D(OneDSpectrumMixin, NDDataRef):
around with the spectrum container object.
"""
def __init__(self, flux=None, spectral_axis=None, wcs=None,
velocity_convention=None, rest_value=None, *args, **kwargs):
velocity_convention=None, rest_value=None, **kwargs):
# Check for pre-defined entries in the kwargs dictionary.
unknown_kwargs = set(kwargs).difference(
{'data', 'unit', 'uncertainty', 'meta', 'mask', 'copy'})

if len(unknown_kwargs) > 0:
raise ValueError("Initializer contains unknown arguments(s): {}."
"".format(', '.join(map(str, unknown_kwargs))))

# If the flux (data) argument is a subclass of nddataref (as it would
# be for internal arithmetic operations), avoid setup entirely.
if isinstance(flux, NDDataRef):
Expand Down

0 comments on commit ec39acf

Please sign in to comment.