def _fit(self, t, y, dy, filts): import numpy as np mask = filts == self.band self.t, self.y, self.dy, self.filts = (t[mask], y[mask], dy[mask], filts[mask]) self.unique_filts_ = np.unique(self.filts) return SuperSmootherMultiband._fit(self, self.t, self.y, self.dy, self.filts)
def _fit(self, t, y, dy, filts): import numpy as np mask = (filts == self.band) self.t, self.y, self.dy, self.filts = (t[mask], y[mask], dy[mask], filts[mask]) self.unique_filts_ = np.unique(self.filts) return SuperSmootherMultiband._fit(self, self.t, self.y, self.dy, self.filts)
def __init__(self, optimizer=None, band='g'): self.band = band SuperSmootherMultiband.__init__(self, optimizer)
def __init__(self, optimizer=None, band="g"): self.band = band SuperSmootherMultiband.__init__(self, optimizer)