Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build in prep for anise 0.5 WIP #372

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ gitlab = { repository = "nyx-space/nyx", branch = "master" }
[dependencies]
nalgebra = "0.33"
log = "0.4"
hifitime = "4.0.0-alpha"
# anise = "0.4.0"
hifitime = "4.0.0"
# anise = "0.5.0" # UNRELEASED
anise = { git = "https://github.com/nyx-space/anise.git", branch = "master" }
flate2 = { version = "1.0", features = [
"rust_backend",
Expand All @@ -56,9 +56,6 @@ rayon = "1.6"
lazy_static = "1.4.0"
approx = "0.5"
rand_pcg = "0.3"
pyo3 = { version = "0.21", optional = true, features = ["extension-module"] }
pyo3-log = { version = "0.10", optional = true }
numpy = { version = "0.21", optional = true }
indicatif = { version = "0.17", features = ["rayon"] }
rstats = "2.0.1"
parquet = { version = "53.0.0", default-features = false, features = [
Expand All @@ -74,7 +71,6 @@ num = "0.4.0"
enum-iterator = "2.0.0"
getrandom = { version = "0.2", features = ["js"] }
typed-builder = "0.20.0"
pythonize = { version = "0.21", optional = true }
snafu = { version = "0.8.3", features = ["backtrace"] }
serde_dhall = "0.12"

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

[features]
default = []
python = ["pyo3", "pyo3-log", "hifitime/python", "numpy", "pythonize"]
# python = ["pyo3", "pyo3-log", "hifitime/python", "numpy", "pythonize"]
python = []

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
7 changes: 3 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Refer to [nyxspace.com](https://nyxspace.com) for a user guide, a show case, the

#[macro_use]
extern crate log;
extern crate nalgebra as na;

/// Provides all the propagators / integrators available in `nyx`.
pub mod propagators;
Expand Down Expand Up @@ -74,14 +73,14 @@ pub mod time {

/// Re-export nalgebra
pub mod linalg {
pub use na::base::*;
pub use nalgebra::base::*;
}

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

#[cfg(feature = "python")]
mod python;
// #[cfg(feature = "python")]
// mod python;

/// The GMAT Earth gravitation parameter, used only for testing.
#[cfg(test)]
Expand Down
2 changes: 1 addition & 1 deletion src/mc/multivariate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::errors::StateError;
use crate::md::prelude::{BPlane, OrbitDual};
use crate::md::{AstroSnafu, StateParameter};
use crate::{pseudo_inverse, NyxError, Spacecraft, State};
use na::{DMatrix, DVector, SMatrix, SVector};
use nalgebra::{DMatrix, DVector, SMatrix, SVector};
use rand_distr::{Distribution, Normal};
use snafu::ResultExt;

Expand Down
2 changes: 1 addition & 1 deletion src/od/estimate/kfestimate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ use crate::mc::{MultivariateNormal, StateDispersion};
use crate::md::prelude::OrbitDual;
use crate::md::StateParameter;
use crate::Spacecraft;
use na::SMatrix;
use nalgebra::Const;
use nalgebra::SMatrix;
use rand::SeedableRng;
use rand_distr::Distribution;
use rand_pcg::Pcg64Mcg;
Expand Down
2 changes: 1 addition & 1 deletion src/od/estimate/sc_uncertainty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use core::fmt;

use anise::errors::MathError;
use anise::{astro::PhysicsResult, errors::PhysicsError};
use na::{SMatrix, SVector};
use nalgebra::{SMatrix, SVector};
use typed_builder::TypedBuilder;

use crate::{dynamics::guidance::LocalFrame, Spacecraft};
Expand Down
2 changes: 1 addition & 1 deletion src/od/filter/kalman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ where
+ Allocator<A, A>
+ Allocator<<T as State>::Size, A>
+ Allocator<A, <T as State>::Size>
+ Allocator<na::Const<1>, M>,
+ Allocator<nalgebra::Const<1>, M>,
<DefaultAllocator as Allocator<<T as State>::Size>>::Buffer<f64>: Copy,
<DefaultAllocator as Allocator<<T as State>::Size, <T as State>::Size>>::Buffer<f64>: Copy,
{
Expand Down
2 changes: 1 addition & 1 deletion src/od/process/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use arrow::datatypes::{DataType, Field, Schema};
use arrow::record_batch::RecordBatch;
use filter::kalman::KF;
use hifitime::TimeScale;
use na::Const;
use nalgebra::Const;
use parquet::arrow::ArrowWriter;
use snafu::prelude::*;
use std::collections::HashMap;
Expand Down
2 changes: 1 addition & 1 deletion tests/mission_design/orbitaldyn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extern crate nyx_space as nyx;
use anise::constants::celestial_objects::{EARTH, JUPITER_BARYCENTER, MOON, SUN};
use anise::constants::frames::IAU_EARTH_FRAME;
use hifitime::MJD_J2000;
use na::{Const, OMatrix};
use nalgebra::{Const, OMatrix};
use nyx::cosmic::{assert_orbit_eq_or_abs, Orbit};
use nyx::dynamics::{Dynamics, OrbitalDynamics, PointMasses, SpacecraftDynamics};
use nyx::linalg::Vector6;
Expand Down
2 changes: 1 addition & 1 deletion tests/propagation/stopcond.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use anise::constants::celestial_objects::{EARTH, SUN};
use anise::constants::frames::{EARTH_J2000, MOON_J2000};
use anise::prelude::Almanac;
use hifitime::JD_J2000;
use na::Vector3;
use nalgebra::Vector3;
use nyx::cosmic::Orbit;
use nyx::dynamics::guidance::{FiniteBurns, LocalFrame, Mnvr, Thruster};
use nyx::dynamics::orbital::OrbitalDynamics;
Expand Down
Loading