def test_time_lag_computes_correctly(self): with pytest.warns(UserWarning) as record: lag = time_lag(self.lc1, self.lc2) assert np.max(lag) <= np.pi assert np.min(lag) >= -np.pi
def test_time_lag_fails_if_data2_not_lc(self): data = np.array([[1, 2, 3, 4, 5], [2, 3, 4, 5, 1]]) with pytest.raises(TypeError): lag = time_lag(data, self.lc2)
def test_time_lag_computes_correctly(self): lag = time_lag(self.lc1, self.lc2) assert np.max(lag) <= np.pi assert np.min(lag) >= -np.pi
def test_time_lag_runs(self): with pytest.warns(UserWarning) as record: lag = time_lag(self.lc1, self.lc2)
def test_time_lag_runs(self): lag = time_lag(self.lc1, self.lc2)