-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The first tutorial of OpenMM-Torch with NNPOps (#62)
* Add a tutorial * Rename * Add the Colab link and fix typos * Clean up the conda logs * Test the tutorial * Update the simulation lenght * Add a link to README * Fix a typo * Install Mambaforce * Update the notebook URL
- Loading branch information
Showing
4 changed files
with
491 additions
and
0 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,41 @@ | ||
name: "Test tutorials" | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
pull_request: | ||
branches: | ||
- "master" | ||
schedule: | ||
- cron: "0 0 * * 0" # Every Sunday at midnight | ||
|
||
jobs: | ||
tutorial-1: | ||
runs-on: "ubuntu-latest" | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- name: "Check out" | ||
uses: actions/checkout@v2 | ||
|
||
- name: "Install dependencies with conda" | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: test | ||
environment-file: devtools/conda-envs/test-tutorials.yml | ||
python-version: 3.7 # Mimics Google Colab | ||
|
||
- name: "List conda packages" | ||
run: conda list | ||
|
||
- name: "Convert the tutorial" | ||
run: | | ||
jupyter nbconvert --to python --stdout tutorials/openmm-torch-nnpops.ipynb > test.py | ||
sed -i '/condacolab/d' test.py # Remove conda-colab | ||
sed -i 's#&> /dev/null##g' test.py # Remove the output redirection | ||
cat test.py | ||
- name: "Run the tutorial" | ||
run: ipython test.py |
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,5 @@ | ||
name: test | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- notebook |
Oops, something went wrong.