예제 #1
0
    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)
예제 #2
0
 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)
예제 #3
0
 def __init__(self, optimizer=None, band='g'):
     self.band = band
     SuperSmootherMultiband.__init__(self, optimizer)
예제 #4
0
 def __init__(self, optimizer=None, band="g"):
     self.band = band
     SuperSmootherMultiband.__init__(self, optimizer)