Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKrughoff committed Nov 5, 2019
1 parent 9a293ee commit b97a79c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/lsst/meas/algorithms/simple_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class Curve(ABC):
mode = ''
subclasses = dict()

@classmethod
@abstractmethod
def fromTable(cls, table):
"""Class method for constructing a `Curve` object.
Expand Down Expand Up @@ -285,8 +286,9 @@ def __init__(self, wavelength, efficiency, metadata):
self.metadata = metadata

def __eq__(self, other):
return (self.compare_metadata(other) and numpy.array_equal(self.wavelength, other.wavelength)
and numpy.array_equal(self.wavelength, other.wavelength))
return (self.compare_metadata(other) and
numpy.array_equal(self.wavelength, other.wavelength) and
numpy.array_equal(self.wavelength, other.wavelength))

@classmethod
def fromTable(cls, table):
Expand Down Expand Up @@ -372,7 +374,7 @@ def toTable(self):
names = numpy.concatenate([names, numpy.full(val[0].shape, amp_name)])
names = numpy.array(names)
# Note that in future, the astropy.unit should make it through concatenation
return Table({'amp_name': names, 'wavelength': wavelength*wunit,'efficiency': efficiency*eunit},
return Table({'amp_name': names, 'wavelength': wavelength*wunit, 'efficiency': efficiency*eunit},
meta=self.metadata)

def evaluate(self, detector, position, wavelength, kind='linear'):
Expand Down

0 comments on commit b97a79c

Please sign in to comment.