def test_pulse_phase3(self): """Test pulse phase calculation, fddot only.""" times = np.arange(0, 4, 0.5) ph = pulse_phase(times, 0, 0, 1, ph0=0, to_1=False) np.testing.assert_array_almost_equal(ph, 1 / 6 * times**3)
def test_pulse_phase1(self): """Test pulse phase calculation, frequency only.""" times = np.arange(0, 4, 0.5) ph = pulse_phase(times, 1, ph0=0, to_1=False) np.testing.assert_array_almost_equal(ph, times)