-
-
Notifications
You must be signed in to change notification settings - Fork 16
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 #36 from anise-toolkit/30-spice-bsp-files-should-b…
…e-usable-without-needing-the-anise-file-equivalent Read SPK files directly
- Loading branch information
Showing
119 changed files
with
8,101 additions
and
2,728 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[env] | ||
CSPICE_DIR = {value = "./cspice/", relative = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Benchmarks | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- "*" | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
type2_chebyshev: | ||
name: JPL DE Benchmark | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Install CSPICE | ||
run: sh dev-env-setup.sh && cd .. # Return to root | ||
|
||
- name: Bench | ||
run: cargo bench --bench "*_jpl_ephemerides" | ||
|
||
- name: Save benchmark artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: jpl-development-ephemerides-benchmark | ||
path: target/criterion/**/report/* | ||
|
||
type13_hermite: | ||
name: Hermite Benchmark | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Install CSPICE | ||
run: sh dev-env-setup.sh && cd .. # Return to root | ||
|
||
- name: Bench | ||
run: cargo bench --bench "*_spacecraft_ephemeris" | ||
|
||
- name: Save benchmark artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: spacecraft-ephemeris-benchmark | ||
path: target/criterion/**/report/* |
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
/target | ||
Cargo.lock | ||
*.anis* | ||
*.anis* | ||
cspice | ||
*.parquet | ||
*.svg | ||
perf.data* | ||
analysis/.venv | ||
cspice.tar.Z |
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 |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "specs"] | ||
path = specs | ||
url = https://github.com/anise-toolkit/specs.git | ||
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,3 @@ | ||
{ | ||
"python.formatting.provider": "yapf" | ||
} |
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,5 @@ | ||
# Authors | ||
|
||
+ Christopher Rabotin <[email protected]> | ||
+ Chris de Claverie <[email protected]> | ||
+ Grégoire Henry <[email protected]> |
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,10 @@ | ||
hifitime==3.7.0 | ||
numpy==1.23.4 | ||
pandas==1.5.1 | ||
plotly==5.10.0 | ||
polars==0.14.21 | ||
pyarrow==10.0.1 | ||
python-dateutil==2.8.2 | ||
pytz==2022.5 | ||
six==1.16.0 | ||
tenacity==8.1.0 |
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,36 @@ | ||
import pandas as pd | ||
import plotly.express as px | ||
from os.path import abspath, join, dirname | ||
|
||
if __name__ == '__main__': | ||
|
||
target_folder = join(abspath(dirname(__file__)), '..', 'target') | ||
|
||
for name, filename in [("validation", "type13-validation-test-results"), | ||
("outliers", "type13-validation-outliers")]: | ||
|
||
# Load the parquet file | ||
df = pd.read_parquet(f"{target_folder}/{filename}.parquet") | ||
|
||
if name == 'validation': | ||
y = 'relative error' | ||
else: | ||
y = 'absolute error' | ||
|
||
for kind, columns in [("Position", ["X", "Y", "Z"]), | ||
("Velocity", ["VX", "VY", "VZ"])]: | ||
|
||
print(f"== {kind} {name} ==") | ||
|
||
subset = df.loc[df.component.isin(columns)] | ||
|
||
print(subset.describe()) | ||
|
||
plt = px.scatter(subset, | ||
x='File delta T (s)', | ||
y=y, | ||
color='source frame') | ||
|
||
plt.write_html( | ||
f"{target_folder}/{name}-{kind}-validation.html") | ||
plt.show() |
Oops, something went wrong.