def test_counterclockwise(self): s = dd.get_simple_dpc_signal() s_rot = s.rotate_data(-1) assert (s_rot.data[0, 0, 0:10] == 0).all() assert not (s_rot.data[0, 0, -10:] == 0).all() assert (s_rot.data[0, -10:, 0] == 0).all() assert not (s_rot.data[0, 0:10, 0] == 0).all()
def test_get_simple_dpc_signal(self): s = dd.get_simple_dpc_signal() assert hasattr(s, "plot")