Skip to content

Commit

Permalink
streamline plotting workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GilesFearon committed Sep 17, 2024
1 parent 48ff204 commit bdb755e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/post_plot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ jobs:
--extents ${{ inputs.EXTENTS }} \
--dx_m ${{ inputs.DX_M }}
plotting:
needs: [gridding]
plot_particles:
runs-on: ${{ inputs.RUNNER_NAME }}
steps:
- name: make animation of the particles
Expand All @@ -82,8 +81,13 @@ jobs:
animate \
--type particles \
--config_dir ${{ env.RUN_DIR_DOCKER }} \
--extents ${{ inputs.EXTENTS }}
--extents ${{ inputs.EXTENTS }} \
--gif_out trajectories.gif
plot_gridded:
needs: [gridding]
runs-on: ${{ inputs.RUNNER_NAME }}
steps:
# animation of the gridded output
docker run \
--rm \
Expand All @@ -93,10 +97,11 @@ jobs:
animate \
--type gridded \
--config_dir ${{ env.RUN_DIR_DOCKER }} \
--extents ${{ inputs.EXTENTS }}
--extents ${{ inputs.EXTENTS }} \
--gif_out gridded.gif

permissions:
needs: [gridding,plotting]
needs: [gridding,plot_gridded,plot_particles]
runs-on: ${{ inputs.RUNNER_NAME }}
steps:
- name: set permissions of output
Expand Down

0 comments on commit bdb755e

Please sign in to comment.