Skip to content

Commit cbd04c7

Browse files
Merge pull request #371 from nyx-space/cleanup/gh-370
Cosmetic changes for 0.5.2 release
2 parents 3fe4183 + f2f7eb8 commit cbd04c7

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

anise-py/src/constants.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,14 @@ impl Frames {
6868
#[classattr]
6969
const MOON_ME_DE421_FRAME: Frame = MOON_ME_DE421_FRAME;
7070
#[classattr]
71+
const MOON_ME_DE440_ME421_FRAME: Frame = MOON_ME_DE440_ME421_FRAME;
72+
#[classattr]
7173
const MOON_PA_FRAME: Frame = MOON_PA_FRAME;
7274
#[classattr]
75+
const MOON_PA_DE421_FRAME: Frame = MOON_PA_DE421_FRAME;
76+
#[classattr]
77+
const MOON_PA_DE440_FRAME: Frame = MOON_PA_DE440_FRAME;
78+
#[classattr]
7379
const IAU_MOON_FRAME: Frame = IAU_MOON_FRAME;
7480
#[classattr]
7581
const IAU_MARS_FRAME: Frame = IAU_MARS_FRAME;
@@ -106,8 +112,14 @@ impl Orientations {
106112
#[classattr]
107113
const MOON_ME_DE421: i32 = MOON_ME_DE421;
108114
#[classattr]
115+
const MOON_ME_DE440_ME421: i32 = MOON_ME_DE440_ME421;
116+
#[classattr]
109117
const MOON_PA: i32 = MOON_PA;
110118
#[classattr]
119+
const MOON_PA_DE421: i32 = MOON_PA_DE421;
120+
#[classattr]
121+
const MOON_PA_DE440: i32 = MOON_PA_DE440;
122+
#[classattr]
111123
const ITRF93: i32 = ITRF93;
112124
#[classattr]
113125
const IAU_MARS: i32 = IAU_MARS;

anise/src/orientations/rotations.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ use crate::math::units::*;
2121
use crate::math::Vector3;
2222
use crate::prelude::Frame;
2323

24+
#[cfg(feature = "python")]
25+
use pyo3::prelude::*;
26+
27+
#[cfg_attr(feature = "python", pymethods)]
2428
impl Almanac {
2529
/// Returns the 6x6 DCM needed to rotation the `from_frame` to the `to_frame`.
2630
///
@@ -124,7 +128,9 @@ impl Almanac {
124128

125129
(dcm * state).context(OrientationPhysicsSnafu {})
126130
}
131+
}
127132

133+
impl Almanac {
128134
/// Rotates a state with its origin (`to_frame`) and given its units (distance_unit, time_unit), returns that state with respect to the requested frame
129135
///
130136
/// **WARNING:** This function only performs the translation and no rotation _whatsoever_. Use the `transform_state_to` function instead to include rotations.

0 commit comments

Comments
 (0)