Skip to content

Commit bef2893

Browse files
Merge pull request #372 from nyx-space/deps/anise-0.5.0
Fix build in prep for anise 0.5 WIP
2 parents b488863 + bb5ffd3 commit bef2893

File tree

9 files changed

+14
-18
lines changed

9 files changed

+14
-18
lines changed

Cargo.toml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ gitlab = { repository = "nyx-space/nyx", branch = "master" }
3737
[dependencies]
3838
nalgebra = "0.33"
3939
log = "0.4"
40-
hifitime = "4.0.0-alpha"
41-
# anise = "0.4.0"
40+
hifitime = "4.0.0"
41+
# anise = "0.5.0" # UNRELEASED
4242
anise = { git = "https://github.com/nyx-space/anise.git", branch = "master" }
4343
flate2 = { version = "1.0", features = [
4444
"rust_backend",
@@ -56,9 +56,6 @@ rayon = "1.6"
5656
lazy_static = "1.4.0"
5757
approx = "0.5"
5858
rand_pcg = "0.3"
59-
pyo3 = { version = "0.21", optional = true, features = ["extension-module"] }
60-
pyo3-log = { version = "0.10", optional = true }
61-
numpy = { version = "0.21", optional = true }
6259
indicatif = { version = "0.17", features = ["rayon"] }
6360
rstats = "2.0.1"
6461
parquet = { version = "53.0.0", default-features = false, features = [
@@ -74,7 +71,6 @@ num = "0.4.0"
7471
enum-iterator = "2.0.0"
7572
getrandom = { version = "0.2", features = ["js"] }
7673
typed-builder = "0.20.0"
77-
pythonize = { version = "0.21", optional = true }
7874
snafu = { version = "0.8.3", features = ["backtrace"] }
7975
serde_dhall = "0.12"
8076

@@ -90,7 +86,8 @@ shadow-rs = "0.35.0"
9086

9187
[features]
9288
default = []
93-
python = ["pyo3", "pyo3-log", "hifitime/python", "numpy", "pythonize"]
89+
# python = ["pyo3", "pyo3-log", "hifitime/python", "numpy", "pythonize"]
90+
python = []
9491

9592
[lib]
9693
crate-type = ["cdylib", "rlib"]

src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ Refer to [nyxspace.com](https://nyxspace.com) for a user guide, a show case, the
2828

2929
#[macro_use]
3030
extern crate log;
31-
extern crate nalgebra as na;
3231

3332
/// Provides all the propagators / integrators available in `nyx`.
3433
pub mod propagators;
@@ -74,14 +73,14 @@ pub mod time {
7473

7574
/// Re-export nalgebra
7675
pub mod linalg {
77-
pub use na::base::*;
76+
pub use nalgebra::base::*;
7877
}
7978

8079
/// Re-export some useful things
8180
pub use self::cosmic::{Orbit, Spacecraft, State, TimeTagged};
8281

83-
#[cfg(feature = "python")]
84-
mod python;
82+
// #[cfg(feature = "python")]
83+
// mod python;
8584

8685
/// The GMAT Earth gravitation parameter, used only for testing.
8786
#[cfg(test)]

src/mc/multivariate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use crate::errors::StateError;
2323
use crate::md::prelude::{BPlane, OrbitDual};
2424
use crate::md::{AstroSnafu, StateParameter};
2525
use crate::{pseudo_inverse, NyxError, Spacecraft, State};
26-
use na::{DMatrix, DVector, SMatrix, SVector};
26+
use nalgebra::{DMatrix, DVector, SMatrix, SVector};
2727
use rand_distr::{Distribution, Normal};
2828
use snafu::ResultExt;
2929

src/od/estimate/kfestimate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ use crate::mc::{MultivariateNormal, StateDispersion};
2424
use crate::md::prelude::OrbitDual;
2525
use crate::md::StateParameter;
2626
use crate::Spacecraft;
27-
use na::SMatrix;
2827
use nalgebra::Const;
28+
use nalgebra::SMatrix;
2929
use rand::SeedableRng;
3030
use rand_distr::Distribution;
3131
use rand_pcg::Pcg64Mcg;

src/od/estimate/sc_uncertainty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use core::fmt;
2020

2121
use anise::errors::MathError;
2222
use anise::{astro::PhysicsResult, errors::PhysicsError};
23-
use na::{SMatrix, SVector};
23+
use nalgebra::{SMatrix, SVector};
2424
use typed_builder::TypedBuilder;
2525

2626
use crate::{dynamics::guidance::LocalFrame, Spacecraft};

src/od/filter/kalman.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ where
175175
+ Allocator<A, A>
176176
+ Allocator<<T as State>::Size, A>
177177
+ Allocator<A, <T as State>::Size>
178-
+ Allocator<na::Const<1>, M>,
178+
+ Allocator<nalgebra::Const<1>, M>,
179179
<DefaultAllocator as Allocator<<T as State>::Size>>::Buffer<f64>: Copy,
180180
<DefaultAllocator as Allocator<<T as State>::Size, <T as State>::Size>>::Buffer<f64>: Copy,
181181
{

src/od/process/export.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use arrow::datatypes::{DataType, Field, Schema};
3030
use arrow::record_batch::RecordBatch;
3131
use filter::kalman::KF;
3232
use hifitime::TimeScale;
33-
use na::Const;
33+
use nalgebra::Const;
3434
use parquet::arrow::ArrowWriter;
3535
use snafu::prelude::*;
3636
use std::collections::HashMap;

tests/mission_design/orbitaldyn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ extern crate nyx_space as nyx;
44
use anise::constants::celestial_objects::{EARTH, JUPITER_BARYCENTER, MOON, SUN};
55
use anise::constants::frames::IAU_EARTH_FRAME;
66
use hifitime::MJD_J2000;
7-
use na::{Const, OMatrix};
7+
use nalgebra::{Const, OMatrix};
88
use nyx::cosmic::{assert_orbit_eq_or_abs, Orbit};
99
use nyx::dynamics::{Dynamics, OrbitalDynamics, PointMasses, SpacecraftDynamics};
1010
use nyx::linalg::Vector6;

tests/propagation/stopcond.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use anise::constants::celestial_objects::{EARTH, SUN};
88
use anise::constants::frames::{EARTH_J2000, MOON_J2000};
99
use anise::prelude::Almanac;
1010
use hifitime::JD_J2000;
11-
use na::Vector3;
11+
use nalgebra::Vector3;
1212
use nyx::cosmic::Orbit;
1313
use nyx::dynamics::guidance::{FiniteBurns, LocalFrame, Mnvr, Thruster};
1414
use nyx::dynamics::orbital::OrbitalDynamics;

0 commit comments

Comments
 (0)