def _methods_for_epochs(self):
"""
for given epochs, decide which methods should be used to
calculate magnification, but don't run the calculations
"""
out = [self._default_method] * len(self.times)
if self._methods_epochs is None:
return out
brackets = np.searchsorted(self._methods_epochs, self.times)
n_max = len(self._methods_epochs)
out = [self._methods_names[value - 1]
if (value > 0 and value < n_max) else self._default_method
for value in brackets]
return out
评论列表
文章目录