Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made notebooks run with current hera_sim #238

Merged
merged 13 commits into from
Sep 10, 2024
47 changes: 47 additions & 0 deletions .github/workflows/run-docs-code.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Run Demo
on: [push, pull_request]


jobs:
tests:
name: Run Demo
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
env:
ENV_NAME: testing
strategy:
fail-fast: false
matrix:
demo: ["end_to_end_example", "hera_sim_defaults", "hera_sim_simulator", "hera_sim_tour", "mutual_coupling_example", "polybeam_simulation", "visibility_simulator"]
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.12

- uses: mpi4py/setup-mpi@v1

- name: Install
run: |
pip install --upgrade pip
pip install .[tests]
pip install papermill ipykernel

- name: Install ipykernel
run: python -m ipykernel install --user --name herasim

- name: Run Notebook
run: |
papermill -k herasim docs/tutorials/${{ matrix.demo }}.ipynb output-${{ matrix.demo }}.ipynb

- uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ matrix.demo }}
path: output-${{ matrix.demo }}.ipynb
143 changes: 96 additions & 47 deletions docs/tutorials/end_to_end_example.ipynb

Large diffs are not rendered by default.

270 changes: 125 additions & 145 deletions docs/tutorials/hera_sim_defaults.ipynb

Large diffs are not rendered by default.

391 changes: 214 additions & 177 deletions docs/tutorials/hera_sim_simulator.ipynb

Large diffs are not rendered by default.

Loading
Loading