Skip to content

Commit

Permalink
Fix plot paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed Aug 2, 2024
1 parent 130a200 commit ee83624
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/deploy-live-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,21 @@ jobs:
- run: cargo doc --no-deps --examples -Z rustdoc-scrape-examples
- name: Copy plots directories
run: |
declare -A example_map
example_map["01_orbit_prop"]="01_orbit_prop"
example_map["02_jwst_covar_monte_carlo"]="02_jwst"
example_map["03_geo_analysis"]="03_geo_raise"
for example_dir in examples/*; do
example_name=$(basename $example_dir)
if [ -d "$example_dir/plots" ]; then
example_name=$(basename $example_dir)
mkdir -p target/doc/$example_name/plots
cp -r $example_dir/plots/* target/doc/$example_name/plots/
doc_name=${example_map[$example_name]}
if [ -n "$doc_name" ]; then
mkdir -p target/doc/$doc_name/plots
cp -r $example_dir/plots/* target/doc/$doc_name/plots/
else
echo "No mapping found for $example_name"
fi
fi
done
- uses: FirebaseExtended/action-hosting-deploy@v0
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/deploy-staging-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,21 @@ jobs:
- run: cargo doc --no-deps --examples -Z rustdoc-scrape-examples
- name: Copy plots directories
run: |
declare -A example_map
example_map["01_orbit_prop"]="01_orbit_prop"
example_map["02_jwst_covar_monte_carlo"]="02_jwst"
example_map["03_geo_analysis"]="03_geo_raise"
for example_dir in examples/*; do
example_name=$(basename $example_dir)
if [ -d "$example_dir/plots" ]; then
example_name=$(basename $example_dir)
mkdir -p target/doc/$example_name/plots
cp -r $example_dir/plots/* target/doc/$example_name/plots/
doc_name=${example_map[$example_name]}
if [ -n "$doc_name" ]; then
mkdir -p target/doc/$doc_name/plots
cp -r $example_dir/plots/* target/doc/$doc_name/plots/
else
echo "No mapping found for $example_name"
fi
fi
done
- uses: FirebaseExtended/action-hosting-deploy@v0
Expand Down
4 changes: 2 additions & 2 deletions src/od/simulator/arc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ impl TrackingArcSim<Spacecraft, RangeDoppler, GroundStation> {
/// 5. Build each of these as "tracking strands" for this tracking device.
/// 6. Organize all of the built tracking strands chronologically.
/// 7. Iterate through all of the strands:
/// 7.a. if that tracker is marked as `Greedy` and it ends after the start of the next strand, change the start date of the next strand.
/// 7.b. if that tracker is marked as `Eager` and it ends after the start of the next strand, change the end date of the current strand.
/// 7.a. if that tracker is marked as `Greedy` and it ends after the start of the next strand, change the start date of the next strand.
/// 7.b. if that tracker is marked as `Eager` and it ends after the start of the next strand, change the end date of the current strand.
pub fn generate_schedule(
&self,
almanac: Arc<Almanac>,
Expand Down

0 comments on commit ee83624

Please sign in to comment.