Skip to content

Commit

Permalink
Version bump (req. for CI pytests)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed Dec 15, 2024
1 parent 1974af3 commit 1a69ee2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
description = "ANISE provides a toolkit and files for Attitude, Navigation, Instrument, Spacecraft, and Ephemeris data. It's a modern replacement of NAIF SPICE file."
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions anise-py/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use pyo3::py_run;

mod astro;
mod constants;
mod rotations;
mod rotation;
mod utils;

/// A Python module implemented in Rust.
Expand All @@ -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::<Almanac>()?;
m.add_class::<Aberration>()?;
m.add_class::<MetaAlmanac>()?;
Expand Down
2 changes: 0 additions & 2 deletions anise-py/src/rotations.rs → anise-py/src/rotation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<DCM>()?;
// sm.add_class::<Quaternion>()?;
// sm.add_class::<MRP>()?;

Python::with_gil(|py| {
py_run!(py, sm, "import sys; sys.modules['anise.rotation'] = sm");
Expand Down
4 changes: 3 additions & 1 deletion anise/src/math/rotation/dcm_py.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<PyTypeError, _>("rotation matrix must be 3x3"));
return Err(PyErr::new::<PyTypeError, _>(
"rotation matrix time derivative must be 3x3",
));
}
Some(Matrix3::from_row_iterator(
np_rot_mat_dt.as_array().iter().copied(),
Expand Down

0 comments on commit 1a69ee2

Please sign in to comment.