From 0609647dce853bf02fc45bf5fe7ed78828a44c21 Mon Sep 17 00:00:00 2001 From: Dan Kapner Date: Mon, 4 Jan 2021 14:29:26 -0800 Subject: [PATCH] updates Rotation.as_dcm to as_matrix --- CHANGELOG.md | 3 +++ allensdk/__init__.py | 2 +- .../test/brain_observatory/gaze_mapping/test_gaze_mapping.py | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32d8bed27..1cd0dfeea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Change Log All notable changes to this project will be documented in this file. +## [2.4.1] = 2021-01-04 +- update deprecated call to scipy.spatial.transform.Rotation.as_dcm() to .as_matrix() + ## [2.4.0] = 2020-12-21 - When running raster_plot on a spike_times dataframe, the spike times from each unit are plotted twice. (thank you @dgmurx) - improvements and fixes to behavior ophys NWB files. diff --git a/allensdk/__init__.py b/allensdk/__init__.py index b31809cd0..850c3e248 100644 --- a/allensdk/__init__.py +++ b/allensdk/__init__.py @@ -37,7 +37,7 @@ -__version__ = '2.4.0' +__version__ = '2.4.1' try: diff --git a/allensdk/test/brain_observatory/gaze_mapping/test_gaze_mapping.py b/allensdk/test/brain_observatory/gaze_mapping/test_gaze_mapping.py index 5fbf9ec77..e26992136 100644 --- a/allensdk/test/brain_observatory/gaze_mapping/test_gaze_mapping.py +++ b/allensdk/test/brain_observatory/gaze_mapping/test_gaze_mapping.py @@ -50,7 +50,7 @@ def rig_component_fixture(request): ], indirect=['rig_component_fixture']) def test_generate_self_to_eye_frame_xform(rig_component_fixture, expected): obtained = rig_component_fixture.generate_self_to_eye_frame_xform() - assert np.allclose(obtained.as_dcm(), expected) + assert np.allclose(obtained.as_matrix(), expected) # ======== GazeMapper tests ======== @@ -341,4 +341,4 @@ def test_project_to_plane(function_inputs, expected): ]) def test_generate_object_rotation_xform(function_inputs, expected): obtained = gm.generate_object_rotation_xform(**function_inputs) - assert np.allclose(obtained.as_dcm(), expected) + assert np.allclose(obtained.as_matrix(), expected)