Skip to content

Commit

Permalink
Try to find the GUI on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed Nov 26, 2023
1 parent 13d58d8 commit 929fc3a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Build Windows executable
run: cargo build --release --bin anise-gui --features=gui
run: cargo build --release --bin anise-gui --features=gui && find . -name "anise-*"

- name: Save executable
uses: actions/upload-artifact@v3
with:
name: anise-gui-windows
path: target\release\anise-gui
path: target\anise-gui
if-no-files-found: error
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ ANISE comes with a GUI to inspect files. Allows you to check the start/end times

Inspect an SPK file ([video link](https://public-data.nyxspace.com/anise/demo/ANISE-SPK.webm)):

<video src="https://public-data.nyxspace.com/anise/demo/ANISE-SPK.webm"></video>
![Inspect an SPK file](http://public-data.nyxspace.com/anise/demo/ANISE-SPK.gif)

Inspect an Binary PCK file (BPC) ([video link](https://public-data.nyxspace.com/anise/demo/ANISE-BPC.webm)):

<video src="https://public-data.nyxspace.com/anise/demo/ANISE-BPC.webm"></video>
![Inspect an SPK file](http://public-data.nyxspace.com/anise/demo/ANISE-BPC.gif)

## Usage

Expand Down
1 change: 0 additions & 1 deletion src/bin/anise-gui/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,6 @@ impl eframe::App for UiApp {
"{}",
data.mu_km3_s2
));

});

match data.shape {
Expand Down
10 changes: 5 additions & 5 deletions src/structure/planetocentric/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ mod planetary_constants_ut {
assert_eq!(repr, repr_dec);
assert_eq!(
format!("{repr}"),
"planetary data 1234 (μ = 12345.6789 km3/s) RA = 270 + 0.003 x"
"planetary data 1234 (μ = 12345.6789 km3/s) RA = 270 + 0.003 t"
);
}

Expand All @@ -475,7 +475,7 @@ mod planetary_constants_ut {
assert_eq!(repr, repr_dec);
assert_eq!(
format!("{repr}"),
"planetary data 1234 (μ = 12345.6789 km3/s) Dec = 66.541 + 0.013 x"
"planetary data 1234 (μ = 12345.6789 km3/s) Dec = 66.541 + 0.013 t"
);
}

Expand All @@ -501,7 +501,7 @@ mod planetary_constants_ut {
assert_eq!(repr, min_repr_dec);
assert_eq!(
format!("{repr}"),
"planetary data 1234 (μ = 12345.6789 km3/s) PM = 38.317 + 13.1763582 x"
"planetary data 1234 (μ = 12345.6789 km3/s) PM = 38.317 + 13.1763582 t"
);
}

Expand Down Expand Up @@ -535,7 +535,7 @@ mod planetary_constants_ut {

assert_eq!(core::mem::size_of::<PlanetaryData>(), 1984);

assert_eq!(format!("{repr}"), "planetary data 1234 (μ = 12345.6789 km3/s) Dec = 66.541 + 0.013 x PM = 38.317 + 13.1763582 x");
assert_eq!(format!("{repr}"), "planetary data 1234 (μ = 12345.6789 km3/s) Dec = 66.541 + 0.013 t PM = 38.317 + 13.1763582 t");
}

#[test]
Expand Down Expand Up @@ -613,6 +613,6 @@ mod planetary_constants_ut {

assert_eq!(moon, moon_dec);

assert_eq!(format!("{moon}"), "planetary data 301 (μ = 4902.800066163796 km3/s) RA = 269.9949 + 0.0031 x Dec = 66.5392 + 0.013 x PM = 38.3213 + 13.17635815 x + -0.0000000000014 x^2");
assert_eq!(format!("{moon}"), "planetary data 301 (μ = 4902.800066163796 km3/s) RA = 269.9949 + 0.0031 t Dec = 66.5392 + 0.013 t PM = 38.3213 + 13.17635815 t + -0.0000000000014 t^2");
}
}

0 comments on commit 929fc3a

Please sign in to comment.