def __call__(self, time):
        """Return the model evaluated at `time`."""
        if ps is None:
            raise Exception("Unable to import `pysyzygy`.")

        model = (self._transit(time) - 1) / self.depth

        # Single transit?
        if self.single:
            model[np.where(np.abs(time - self.t0) > self.per / 5.)[0]] = 0.

        return model
def __call__ ( self , time ) : if ps is None : raise Exception ( "Unable to import `pysyzygy`." ) model = ( self . _transit ( time ) - 1 ) / self . depth if self . single : model [ np . where ( np . abs ( time - self . t0 ) > self . per / 5. ) [ 0 ] ] = 0. return model
Return the model evaluated at `time`.