-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #359 from nyx-space/175-expose-rotation-parameters…
…-to-python Expose DCM to Python
- Loading branch information
Showing
20 changed files
with
433 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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." | ||
|
@@ -33,24 +33,19 @@ der = { version = "0.7.8", features = ["derive", "alloc", "real"] } | |
log = "0.4" | ||
pretty_env_logger = "0.5" | ||
tabled = "=0.17" | ||
const_format = "0.2" | ||
nalgebra = { version = "0.33", default-features = true, features = [ | ||
"serde-serialize", | ||
] } | ||
approx = "0.5.1" | ||
zerocopy = { version = "0.8.0", features = ["derive"] } | ||
bytes = "1.6.0" | ||
snafu = { version = "0.8.0", features = ["backtrace"] } | ||
lexical-core = "1.0.1" | ||
heapless = "0.8.0" | ||
rstest = "0.23.0" | ||
pyo3 = { version = "0.22", features = ["multiple-pymethods"] } | ||
pyo3-log = "0.11" | ||
serde = "1" | ||
serde_derive = "1" | ||
serde_dhall = "0.12" | ||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* ANISE Toolkit | ||
* Copyright (C) 2021-onward Christopher Rabotin <[email protected]> et al. (cf. AUTHORS.md) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
* | ||
* Documentation: https://nyxspace.com/ | ||
*/ | ||
|
||
use anise::math::rotation::DCM; | ||
use pyo3::prelude::*; | ||
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>()?; | ||
|
||
Python::with_gil(|py| { | ||
py_run!(py, sm, "import sys; sys.modules['anise.rotation'] = sm"); | ||
}); | ||
|
||
parent_module.add_submodule(&sm)?; | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.