Skip to content

Commit

Permalink
Merge branch 'master' into feature/build_for_wasm_target
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed May 24, 2023
2 parents 35f3e8f + a53dfef commit a30c7d6
Show file tree
Hide file tree
Showing 55 changed files with 3,614 additions and 3,708 deletions.
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Documentation
about: Recommend an update to the documentation
title: ''
labels: 'Documentation'
assignees: ''

---

## Description

Please describe the issue or enhancement you want to report. Provide as much detail as possible to help us understand and address it.

## Documentation type

Tell us which of the four Diátaxis documentation types this issue or enhancement relates to:

- Tutorial
- How-to guide
- Technical reference / Math Spec
- Explanation

## Affected area(s)

For the selected documentation type, tell us what specific area(s) this issue relates to. Provide titles, page numbers, URLs or other locators.

## Expected or desired behavior

Tell us what you expected to see in the documentation, or how you think it could be improved. For enhancements, describe the improvement you think could be made.

## Additional context

Provide any other context or screenshots that would help us understand the issue or enhancement.

## Possible solutions (optional)

If you have any suggestions for how to address the issue or implement the enhancement, provide them here. We appreciate any insights you have!

## Who should review this?

Tag any individuals, teams, or roles that would likely need to review or address this issue for the specified documentation type.

We will do our best to direct this to the appropriate people. Thank you for your feedback!
5 changes: 5 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ jobs:
set -e
pip3 install nyx_space --find-links dist --force-reinstall
pytest
- name: Upload python tests HTMLs
uses: actions/upload-artifact@v3
with:
name: od-plots
path: output_data/*.html

windows:
runs-on: windows-latest
Expand Down
19 changes: 9 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "nyx-space"
build = "build.rs"
version = "2.0.0-alpha.3"
version = "2.0.0-alpha"
edition = "2021"
authors = ["Christopher Rabotin <christopher.rabotin@gmail.com>"]
description = "A high-fidelity space mission toolkit, with orbit propagation, estimation and some systems engineering"
Expand Down Expand Up @@ -35,11 +35,7 @@ rand_distr = "0.4"
meval = "0.2"
rust-embed = "6"
toml = "0.7"
config = {version = "0.13.3", features = ["yaml"]}
regex = "1.5"
pretty_env_logger = "0.5"
dialoguer = "0.10"
glob = "0.3"
rayon = "1.6"
lazy_static = "1.4.0"
approx = "0.5"
Expand All @@ -50,19 +46,22 @@ numpy = {version = "0.17", optional = true}
indicatif = {version = "0.17", features = ["rayon"]}
rstats = "1.2.50"
thiserror = "1.0"
parquet = {version = "39.0.0", default-features = false, features = ["arrow"]}
arrow = "39.0.0"
shadow-rs = {version = "0.21.0", default-features = false}
parquet = {version = "40.0.0", default-features = false, features = ["arrow"]}
arrow = "40.0.0"
serde_yaml = "0.9.21"
whoami = "1.3.0"
either = {version = "1.8.1", features = ["serde"]}
num = "0.4.0"
enum-iterator = "1.4.0"
rstest = "0.17.0"
getrandom = {version = "0.2", features = ["js"]}

[dev-dependencies]
polars = {version = "0.29.0", features = ["parquet"]}
rstest = "0.17.0"
pretty_env_logger = "0.5"

[build-dependencies]
shadow-rs = "0.21.0"
shadow-rs = {version = "0.21.0", default-features = false}

[features]
default = []
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ and portability to all platforms supported by [Rust](https://forge.rust-lang.org

[![nyx-space on crates.io][cratesio-image]][cratesio]
[![nyx-space on docs.rs][docsrs-image]][docsrs]
[![LoC](https://tokei.rs/b1/gitlab/nyx-space/nyx?category=lines)](https://github.com/nyx-space/nyx).
[![LoC](https://tokei.rs/b1/github/nyx-space/nyx?category=lines)](https://github.com/nyx-space/nyx).

[cratesio-image]: https://img.shields.io/crates/v/nyx-space.svg
[cratesio]: https://crates.io/crates/nyx-space
Expand Down
204 changes: 204 additions & 0 deletions data/tests/ccsds/oem/GEO_20s.oem

Large diffs are not rendered by default.

384 changes: 384 additions & 0 deletions data/tests/ccsds/oem/LEO_10s.oem

Large diffs are not rendered by default.

84 changes: 84 additions & 0 deletions data/tests/ccsds/oem/MEO_60s.oem
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
CCSDS_OEM_VERS = 2.0

COMMENT Orbit data are consistent with planetary ephemeris DE-430

CREATION_DATE = 2020-06-01T01:26:47
ORIGINATOR = Test

META_START
OBJECT_NAME = TEST_OBJ
OBJECT_ID = 0000-000A
CENTER_NAME = Earth
REF_FRAME = ICRF
TIME_SYSTEM = UTC
START_TIME = 2020-06-01T12:00:00.000000
USEABLE_START_TIME = 2020-06-01T12:00:00.000000
USEABLE_STOP_TIME = 2020-06-01T13:00:00.000000
STOP_TIME = 2020-06-01T13:00:00.000000
INTERPOLATION = Lagrange
INTERPOLATION_DEGREE = 5
META_STOP

COMMENT Vehicle's position at any requested time was actually computed using an algorithm, not an interpolation of a table of ephemeris.

2020-06-01T12:00:00.000000 2.865691508757101e+02 -2.139941760551576e+04 1.634195486175098e+04 2.767385843060133e+00 1.626117031305496e+00 2.072579173220514e+00 -5.850288281974870e-06 4.368474131730205e-04 -3.336668825987843e-04
2020-06-01T12:01:00.000000 4.525991399948996e+02 -2.130106534115885e+04 1.646570790840699e+04 2.766933135431601e+00 1.652268219511481e+00 2.052482913456063e+00 -9.239913995211514e-06 4.348537217713309e-04 -3.362045371977072e-04
2020-06-01T12:02:00.000000 6.185958681347711e+02 -2.120114761297122e+04 1.658825062632493e+04 2.766277061803237e+00 1.678298862536459e+00 2.032235099098199e+00 -1.262911858106230e-05 4.328292613440295e-04 -3.387186747655105e-04
2020-06-01T12:03:00.000000 7.845471342631230e+02 -2.109967170894462e+04 1.670957396457769e+04 2.765417653988115e+00 1.704207118011987e+00 2.011837146127448e+00 -1.601768385396274e-05 4.307741579321410e-04 -3.412091302106990e-04
2020-06-01T12:04:00.000000 9.504407396467855e+02 -2.099664502738599e+04 1.682966895749312e+04 2.764354956891274e+00 1.729991151180912e+00 1.991290480394419e+00 -1.940539160077215e-05 4.286885392041162e-04 -3.436757396208059e-04
2020-06-01T12:05:00.000000 1.116264488637525e+03 -2.089207507645835e+04 1.694852672524347e+04 2.763089028511356e+00 1.755649134995042e+00 1.970596537548931e+00 -2.279202358087251e-05 4.265725344579776e-04 -3.461183402718331e-04
2020-06-01T12:06:00.000000 1.282006189458394e+03 -2.078596947371456e+04 1.706613847443238e+04 2.761619939942118e+00 1.781179250212834e+00 1.949756762968524e+00 -2.617736153335337e-05 4.244262746141785e-04 -3.485367706273604e-04
2020-06-01T12:07:00.000000 1.447653654988591e+03 -2.067833594562726e+04 1.718249549867490e+04 2.759947775373428e+00 1.806579685496637e+00 1.928772611687142e+00 -2.956118718231959e-05 4.222498922186140e-04 -3.509308703484268e-04
2020-06-01T12:08:00.000000 1.613194703550546e+03 -2.056918232711051e+04 1.729758917917622e+04 2.758072632092082e+00 1.831848637510238e+00 1.907645548322970e+00 -3.294328223977661e-05 4.200435214358182e-04 -3.533004802974367e-04
2020-06-01T12:09:00.000000 1.778617159693725e+03 -2.045851656103759e+04 1.741141098530398e+04 2.755994620482352e+00 1.856984311015775e+00 1.886377047006344e+00 -3.632342841286551e-05 4.178072980486176e-04 -3.556454425425984e-04
2020-06-01T12:10:00.000000 1.943908854981666e+03 -2.034634669775195e+04 1.752395247515699e+04 2.753713864026007e+00 1.881984918971006e+00 1.864968591307182e+00 -3.970140741303263e-05 4.155413594615676e-04 -3.579656003627358e-04
2020-06-01T12:11:00.000000 2.109057628778859e+03 -2.023268089457283e+04 1.763520529612921e+04 2.751230499301966e+00 1.906848682626447e+00 1.843421674162187e+00 -4.307700095551637e-05 4.132458446927159e-04 -3.602607982554668e-04
2020-06-01T12:12:00.000000 2.274051329034716e+03 -2.011752741529440e+04 1.774516118547029e+04 2.748544675985967e+00 1.931573831622043e+00 1.821737797801546e+00 -4.644999076809708e-05 4.109208943731873e-04 -3.625308819388248e-04
2020-06-01T12:13:00.000000 2.438877813069923e+03 -2.000089462968017e+04 1.785381197084017e+04 2.745656556849537e+00 1.956158604084042e+00 1.799918473675567e+00 -4.982015859483347e-05 4.085666507475303e-04 -3.647756983616631e-04
2020-06-01T12:14:00.000000 2.603524948362620e+03 -1.988279101295001e+04 1.796114957086129e+04 2.742566317758839e+00 1.980601246721801e+00 1.777965222380618e+00 -5.318728621003999e-05 4.061832576779043e-04 -3.669950957031981e-04
2020-06-01T12:15:00.000000 2.767980613335725e+03 -1.976322514526334e+04 1.806716599566366e+04 2.739274147672743e+00 2.004900014924627e+00 1.755879573585231e+00 -5.655115540731770e-05 4.037708606245836e-04 -3.691889233840350e-04
2020-06-01T12:16:00.000000 2.932232698137085e+03 -1.964220571119486e+04 1.817185334742857e+04 2.735780248641622e+00 2.029053172857611e+00 1.733663065955271e+00 -5.991154802250720e-05 4.013296066666157e-04 -3.713570320704636e-04
2020-06-01T12:17:00.000000 3.096269105431891e+03 -1.951974149920488e+04 1.827520382092538e+04 2.732084835804278e+00 2.053058993559044e+00 1.711317247079210e+00 -6.326824592863023e-05 3.988596444839390e-04 -3.734992736777269e-04
2020-06-01T12:18:00.000000 3.260077751181984e+03 -1.939584140110503e+04 1.837720970404466e+04 2.728188137385934e+00 2.076915759035981e+00 1.688843673392894e+00 -6.662103104926919e-05 3.963611243688197e-04 -3.756155013800903e-04
2020-06-01T12:19:00.000000 3.423646565436123e+03 -1.927051441151593e+04 1.847786337832742e+04 2.724090394694776e+00 2.100621760361278e+00 1.666243910103839e+00 -6.996968535269477e-05 3.938341982069913e-04 -3.777055696135093e-04
2020-06-01T12:20:00.000000 3.586963493108391e+03 -1.914376962732207e+04 1.857715731948845e+04 2.719791862119260e+00 2.124175297768900e+00 1.643519531115388e+00 -7.331399087521251e-05 3.912790195008233e-04 -3.797693340841251e-04
2020-06-01T12:21:00.000000 3.750016494771663e+03 -1.901561624711714e+04 1.867508409793656e+04 2.715292807123546e+00 2.147574680751325e+00 1.620672118950256e+00 -7.665372971193718e-05 3.886957433467470e-04 -3.818066517725838e-04
2020-06-01T12:22:00.000000 3.912793547433732e+03 -1.888606357064782e+04 1.877163637928892e+04 2.710593510244299e+00 2.170818228154446e+00 1.597703264673929e+00 -7.998868402784964e-05 3.860845264420962e-04 -3.838173809419476e-04
2020-06-01T12:23:00.000000 4.075282645326299e+03 -1.875512099824815e+04 1.886680692488184e+04 2.705694265085827e+00 2.193904268274274e+00 1.574614567817467e+00 -8.331863606603696e-05 3.834455270856536e-04 -3.858013811429067e-04
2020-06-01T12:24:00.000000 4.237471800687261e+03 -1.862279803027057e+04 1.896058859227613e+04 2.700595378315440e+00 2.216831138952647e+00 1.551407636300098e+00 -8.664336815423312e-05 3.807789051780601e-04 -3.877585132219396e-04
2020-06-01T12:25:00.000000 4.399349044546290e+03 -1.848910426650926e+04 1.905297433575851e+04 2.695297169658135e+00 2.239597187673389e+00 1.528084086351264e+00 -8.996266270583941e-05 3.780848222117019e-04 -3.896886393239949e-04
2020-06-01T12:26:00.000000 4.560902427504659e+03 -1.835404940562049e+04 1.914395720683710e+04 2.689799971891378e+00 2.262200771657640e+00 1.504645542432533e+00 -9.327630222929840e-05 3.753634412774767e-04 -3.915916229044739e-04
2020-06-01T12:27:00.000000 4.722120020521304e+03 -1.821764324453373e+04 1.923353035473425e+04 2.684104130839011e+00 2.284640257960044e+00 1.481093637158672e+00 -9.658406933722397e-05 3.726149270642236e-04 -3.934673287326310e-04
2020-06-01T12:28:00.000000 4.882989915694749e+03 -1.807989567785963e+04 1.932168702687244e+04 2.678210005364914e+00 2.306914023564350e+00 1.457430011218768e+00 -9.988574674956641e-05 3.698394458541863e-04 -3.953156228981529e-04
2020-06-01T12:29:00.000000 5.043500227045102e+03 -1.794081669729134e+04 1.940842056935685e+04 2.672117967366429e+00 2.329020455479021e+00 1.433656313296666e+00 -1.031811172984101e-04 3.670371655210709e-04 -3.971363728202195e-04
2020-06-01T12:30:00.000000 5.203639091295316e+03 -1.780041639100010e+04 1.949372442745274e+04 2.665828401767386e+00 2.350957950832713e+00 1.409774199991033e+00 -1.064699639380013e-04 3.642082555325219e-04 -3.989294472531679e-04
2020-06-01T12:31:00.000000 5.363394668653463e+03 -1.765870494302515e+04 1.957759214605790e+04 2.659341706510532e+00 2.372724916969930e+00 1.385785335735045e+00 -1.097520697496588e-04 3.613528869473446e-04 -4.006947162938606e-04
2020-06-01T12:32:00.000000 5.522755143593176e+03 -1.751569263265783e+04 1.966001737017033e+04 2.652658292549754e+00 2.394319771546411e+00 1.361691392715614e+00 -1.130272179500824e-04 3.584712324157599e-04 -4.024320513884314e-04
2020-06-01T12:33:00.000000 5.681708725634786e+03 -1.737138983382022e+04 1.974099384535106e+04 2.645778583841705e+00 2.415740942624633e+00 1.337494050792231e+00 -1.162951918969679e-04 3.555634661776021e-04 -4.041413253392733e-04
2020-06-01T12:34:00.000000 5.840243650124738e+03 -1.722580701443787e+04 1.982051541818209e+04 2.638703017337234e+00 2.436986868769095e+00 1.313194997415303e+00 -1.195557750940652e-04 3.526297640609986e-04 -4.058224123162891e-04
2020-06-01T12:35:00.000000 5.998348179015218e+03 -1.707895473580612e+04 1.989857603671992e+04 2.631432042972385e+00 2.458055999141591e+00 1.288795927543913e+00 -1.228087511988425e-04 3.496703034792839e-04 -4.074751878585958e-04
2020-06-01T12:36:00.000000 6.156010601642023e+03 -1.693084365195282e+04 1.997516975094290e+04 2.623966123658874e+00 2.478946793596351e+00 1.264298543563530e+00 -1.260539040344952e-04 3.466852634369750e-04 -4.090995288848274e-04
2020-06-01T12:37:00.000000 6.313219235505093e+03 -1.678148450899244e+04 2.005029071319476e+04 2.616305735273984e+00 2.499657722775519e+00 1.239704555202849e+00 -1.292910175901447e-04 3.436748245223444e-04 -4.106953137025108e-04
2020-06-01T12:38:00.000000 6.469962427044092e+03 -1.663088814447670e+04 2.012393317862290e+04 2.608451366650518e+00 2.520187268203965e+00 1.215015679450308e+00 -1.325198760294897e-04 3.406391689070387e-04 -4.122624220138720e-04
2020-06-01T12:39:00.000000 6.626228552416146e+03 -1.647906548673864e+04 2.019609150561132e+04 2.600403519565920e+00 2.540533922384451e+00 1.190233640470193e+00 -1.357402637019702e-04 3.375784803485689e-04 -4.138007349226742e-04
2020-06-01T12:40:00.000000 6.782006018272737e+03 -1.632602755423104e+04 2.026676015620856e+04 2.592162708730955e+00 2.560696188892719e+00 1.165360169518264e+00 -1.389519651481803e-04 3.344929441889953e-04 -4.153101349456042e-04
2020-06-01T12:41:00.000000 6.937283262535509e+03 -1.617178545485861e+04 2.033593369655107e+04 2.583729461778121e+00 2.580672582472443e+00 1.140397004856731e+00 -1.421547651030790e-04 3.313827473480167e-04 -4.167905060165924e-04
2020-06-01T12:42:00.000000 7.092048755169611e+03 -1.601635038530634e+04 2.040360679728065e+04 2.575104319249722e+00 2.600461629129870e+00 1.115345891669023e+00 -1.453484485088379e-04 3.282480783288555e-04 -4.182417334985234e-04
2020-06-01T12:43:00.000000 7.246290998959858e+03 -1.585973363035950e+04 2.046977423395761e+04 2.566287834585122e+00 2.620061866228922e+00 1.090208581973735e+00 -1.485328005197124e-04 3.250891272132568e-04 -4.196637041883282e-04
2020-06-01T12:44:00.000000 7.399998530282830e+03 -1.570194656222045e+04 2.053443088746797e+04 2.557280574107845e+00 2.639471842585772e+00 1.064986834538419e+00 -1.517076065142890e-04 3.219060856653928e-04 -4.210563063274085e-04
2020-06-01T12:45:00.000000 7.553159919881480e+03 -1.554300063981730e+04 2.059757174442604e+04 2.548083117011879e+00 2.658690118563820e+00 1.039682414792554e+00 -1.548726520944370e-04 3.186991469229652e-04 -4.224194296107027e-04
2020-06-01T12:46:00.000000 7.705763773634502e+03 -1.538290740810954e+04 2.065919189757169e+04 2.538696055348124e+00 2.677715266167938e+00 1.014297094740180e+00 -1.580277231023652e-04 3.154685058030178e-04 -4.237529651917595e-04
2020-06-01T12:47:00.000000 7.857798733329552e+03 -1.522167849738587e+04 2.071928654616173e+04 2.529119994009532e+00 2.696545869139412e+00 9.888326528720883e-01 -1.611726056232334e-04 3.122143586974182e-04 -4.250568056954650e-04
2020-06-01T12:48:00.000000 8.009253477431860e+03 -1.505932562255743e+04 2.077785099635710e+04 2.519355550716558e+00 2.715180523050159e+00 9.632908740772080e-01 -1.643070859922653e-04 3.089369035704692e-04 -4.263308452255102e-04
2020-06-01T12:49:00.000000 8.160116721854049e+03 -1.489586058244505e+04 2.083488066160379e+04 2.509403356001620e+00 2.733617835397270e+00 9.376735495537264e-01 -1.674309508127747e-04 3.056363399656694e-04 -4.275749793714557e-04
2020-06-01T12:50:00.000000 8.310377220725532e+03 -1.473129525906041e+04 2.089037106300874e+04 2.499264053192973e+00 2.751856425697556e+00 9.119824767196185e-01 -1.705439869468879e-04 3.023128689897379e-04 -4.287891052191919e-04
2020-06-01T12:51:00.000000 8.460023767156443e+03 -1.456564161688369e+04 2.094431782971037e+04 2.488938298398967e+00 2.769894925581274e+00 8.862194591225586e-01 -1.736459815417826e-04 2.989666933269455e-04 -4.299731213614709e-04
2020-06-01T12:52:00.000000 8.609045194008550e+03 -1.439891170213118e+04 2.099671669924392e+04 2.478426760490327e+00 2.787731978887049e+00 8.603863063492648e-01 -1.767367220292788e-04 2.955980172295847e-04 -4.311269279043729e-04
2020-06-01T12:53:00.000000 8.757430374657477e+03 -1.423111764202187e+04 2.104756351790075e+04 2.467730121083254e+00 2.805366241755531e+00 8.344848339344468e-01 -1.798159961375456e-04 2.922070465195365e-04 -4.322504264786368e-04
2020-06-01T12:54:00.000000 8.905168223758536e+03 -1.406227164403533e+04 2.109685424108278e+04 2.456849074521199e+00 2.822796382723679e+00 8.085168632690279e-01 -1.828835918890406e-04 2.887939885765776e-04 -4.333435202455370e-04
2020-06-01T12:55:00.000000 9.052247698006515e+03 -1.389238599516763e+04 2.114458493365069e+04 2.445784327856984e+00 2.840021082818166e+00 7.824842215080317e-01 -1.859392976301930e-04 2.853590523566858e-04 -4.344061139122106e-04
2020-06-01T12:56:00.000000 9.198657796903473e+03 -1.372147306117462e+04 2.119075177026769e+04 2.434536600832811e+00 2.857039035650168e+00 7.563887414774545e-01 -1.889829020224099e-04 2.819024483738775e-04 -4.354381137376154e-04
2020-06-01T12:57:00.000000 9.344387563514483e+03 -1.354954528581780e+04 2.123535103573640e+04 2.423106625861596e+00 2.873848947508301e+00 7.302322615810751e-01 -1.920141940612776e-04 2.784243887059745e-04 -4.364394275385823e-04
2020-06-01T12:58:00.000000 9.489426085230096e+03 -1.337661519009926e+04 2.127837912533083e+04 2.411495148006245e+00 2.890449537452799e+00 7.040166257065109e-01 -1.950329630741885e-04 2.749250869862405e-04 -4.374099647086078e-04
2020-06-01T12:59:00.000000 9.633762494522583e+03 -1.320269537149316e+04 2.131983254512291e+04 2.399702924959699e+00 2.906839537408585e+00 6.777436831303489e-01 -1.980389987482998e-04 2.714047584139894e-04 -4.383496362177999e-04
2020-06-01T13:00:00.000000 9.777385969706267e+03 -1.302779850316984e+04 2.135970791230246e+04 2.387730727022708e+00 2.923017692259432e+00 6.514152884233598e-01 -2.010320911238022e-04 2.678636197418034e-04 -4.392583546315799e-04
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)"
]
dependencies = ["pandas~=1.5.0", "plotly~=5.13.0", "pytest~=7.2.0", "pyarrow~=11.0.0", "scipy~=1.10.1"]
dependencies = ["pandas~=2.0.0", "plotly~=5.13.0", "pytest~=7.2.0", "pyarrow~=11.0.0", "scipy~=1.10.1", "python-slugify~=8.0.1"]

[tool.yapf]
based_on_style = "google"
Expand Down
3 changes: 1 addition & 2 deletions python/nyx_space/plots/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
"""

from .gauss_markov import plot_gauss_markov
from .od import plot_covar, plot_estimates, plot_state_deviation, plot_measurements
from .od import plot_covar, plot_estimates, plot_measurements
from .traj import plot_traj, plot_ground_track

__all__ = [
"plot_gauss_markov",
"plot_covar",
"plot_estimates",
"plot_state_deviation",
"plot_traj",
"plot_ground_track",
"plot_measurements",
Expand Down
Loading

0 comments on commit a30c7d6

Please sign in to comment.