From 1a69ee25b21e7ad6a0c87d38938fbacb9acf05f1 Mon Sep 17 00:00:00 2001 From: Christopher Rabotin Date: Sun, 15 Dec 2024 00:44:52 -0700 Subject: [PATCH] Version bump (req. for CI pytests) --- Cargo.toml | 4 ++-- anise-py/src/lib.rs | 4 ++-- anise-py/src/{rotations.rs => rotation.rs} | 2 -- anise/src/math/rotation/dcm_py.rs | 4 +++- 4 files changed, 7 insertions(+), 7 deletions(-) rename anise-py/src/{rotations.rs => rotation.rs} (91%) diff --git a/Cargo.toml b/Cargo.toml index a27ea417..cc142cbd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "2" members = ["anise", "anise-cli", "anise-gui", "anise-py"] [workspace.package] -version = "0.5.0" +version = "0.5.1" edition = "2021" authors = ["Christopher Rabotin "] description = "ANISE provides a toolkit and files for Attitude, Navigation, Instrument, Spacecraft, and Ephemeris data. It's a modern replacement of NAIF SPICE file." @@ -45,7 +45,7 @@ pyo3-log = "0.11" numpy = "0.22" ndarray = ">= 0.15, < 0.17" -anise = { version = "0.5.0", path = "anise", default-features = false } +anise = { version = "0.5.1", path = "anise", default-features = false } [profile.bench] debug = true diff --git a/anise-py/src/lib.rs b/anise-py/src/lib.rs index 501b4705..37878d32 100644 --- a/anise-py/src/lib.rs +++ b/anise-py/src/lib.rs @@ -20,7 +20,7 @@ use pyo3::py_run; mod astro; mod constants; -mod rotations; +mod rotation; mod utils; /// A Python module implemented in Rust. @@ -30,7 +30,7 @@ fn anise(m: &Bound<'_, PyModule>) -> PyResult<()> { register_time_module(m)?; astro::register_astro(m)?; utils::register_utils(m)?; - rotations::register_rotation(m)?; + rotation::register_rotation(m)?; m.add_class::()?; m.add_class::()?; m.add_class::()?; diff --git a/anise-py/src/rotations.rs b/anise-py/src/rotation.rs similarity index 91% rename from anise-py/src/rotations.rs rename to anise-py/src/rotation.rs index ddc765d0..dfc4d467 100644 --- a/anise-py/src/rotations.rs +++ b/anise-py/src/rotation.rs @@ -15,8 +15,6 @@ use pyo3::py_run; pub(crate) fn register_rotation(parent_module: &Bound<'_, PyModule>) -> PyResult<()> { let sm = PyModule::new_bound(parent_module.py(), "rotation")?; sm.add_class::()?; - // sm.add_class::()?; - // sm.add_class::()?; Python::with_gil(|py| { py_run!(py, sm, "import sys; sys.modules['anise.rotation'] = sm"); diff --git a/anise/src/math/rotation/dcm_py.rs b/anise/src/math/rotation/dcm_py.rs index e613bd68..de6a40a6 100644 --- a/anise/src/math/rotation/dcm_py.rs +++ b/anise/src/math/rotation/dcm_py.rs @@ -37,7 +37,9 @@ impl DCM { let rot_mat_dt = if let Some(np_rot_mat_dt) = np_rot_mat_dt { if np_rot_mat_dt.shape() != [3, 3] { - return Err(PyErr::new::("rotation matrix must be 3x3")); + return Err(PyErr::new::( + "rotation matrix time derivative must be 3x3", + )); } Some(Matrix3::from_row_iterator( np_rot_mat_dt.as_array().iter().copied(),