4eeb3b98b5d033c3c053942592b39fb58731c783,scipy/spatial/transform/tests/test_rotation.py,,test_slerp_num_rotations_mismatch,#,1154

Before Change


    with pytest.raises(ValueError, match="number of rotations to be equal to "
                                         "number of timestamps"):
        np.random.seed(0)
        r = Rotation.from_quat(np.random.uniform(size=(5, 4)))
        t = np.arange(7)
        Slerp(t, r)

After Change


def test_slerp_num_rotations_mismatch():
    with pytest.raises(ValueError, match="number of rotations to be equal to "
                                         "number of timestamps"):
        rnd = np.random.RandomState(0)
        r = Rotation.from_quat(rnd.uniform(size=(5, 4)))
        t = np.arange(7)
        Slerp(t, r)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 6

Instances


Project Name: scipy/scipy
Commit Name: 4eeb3b98b5d033c3c053942592b39fb58731c783
Time: 2021-02-24
Author: m.scherer@fu-berlin.de
File Name: scipy/spatial/transform/tests/test_rotation.py
Class Name:
Method Name: test_slerp_num_rotations_mismatch


Project Name: scipy/scipy
Commit Name: 4eeb3b98b5d033c3c053942592b39fb58731c783
Time: 2021-02-24
Author: m.scherer@fu-berlin.de
File Name: scipy/spatial/transform/tests/test_rotation.py
Class Name:
Method Name: test_slerp_equal_times


Project Name: scipy/scipy
Commit Name: 4eeb3b98b5d033c3c053942592b39fb58731c783
Time: 2021-02-24
Author: m.scherer@fu-berlin.de
File Name: scipy/spatial/transform/tests/test_rotation.py
Class Name:
Method Name: test_slerp_time_dim_mismatch


Project Name: scipy/scipy
Commit Name: 4eeb3b98b5d033c3c053942592b39fb58731c783
Time: 2021-02-24
Author: m.scherer@fu-berlin.de
File Name: scipy/spatial/transform/tests/test_rotation.py
Class Name:
Method Name: test_slerp_call_time_out_of_range


Project Name: scipy/scipy
Commit Name: 4eeb3b98b5d033c3c053942592b39fb58731c783
Time: 2021-02-24
Author: m.scherer@fu-berlin.de
File Name: scipy/spatial/transform/tests/test_rotation.py
Class Name:
Method Name: test_slerp_decreasing_times


Project Name: scipy/scipy
Commit Name: 4eeb3b98b5d033c3c053942592b39fb58731c783
Time: 2021-02-24
Author: m.scherer@fu-berlin.de
File Name: scipy/spatial/transform/tests/test_rotation.py
Class Name:
Method Name: test_slerp_call_time_dim_mismatch


Project Name: scipy/scipy
Commit Name: 4eeb3b98b5d033c3c053942592b39fb58731c783
Time: 2021-02-24
Author: m.scherer@fu-berlin.de
File Name: scipy/spatial/transform/tests/test_rotation.py
Class Name:
Method Name: test_slerp