Skip to content

Commit e0db1f0

Browse files
committed
Merge branch 'of3_septop_example' of github.com:OpenFreeEnergy/ExampleNotebooks into of3_septop_example
2 parents 1dbcd36 + d5ccf21 commit e0db1f0

23 files changed

Lines changed: 2009 additions & 1082 deletions

.binder/environment.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: openfe-notebooks
22
channels:
3-
- jaimergp/label/unsupported-cudatoolkit-shim
43
- conda-forge
54
dependencies:
65
- MDAnalysis
@@ -27,6 +26,6 @@ dependencies:
2726
- python
2827
- rdkit
2928
- typing_extensions
30-
- gufe>=1.4.1
31-
- openfe~=1.2
29+
- gufe>=1.7.0
30+
- openfe>=1.7.0
3231
- py3dmol

.github/workflows/CI.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
# Note: we temporarily pin to macos-12 to avoid compatibility issues
33-
# between AT22+ and macos-13+ runners
3432
os: ["ubuntu-latest", "macos-latest"]
35-
python-version: ["3.10"]
33+
python-version: ["3.12"]
3634

3735
steps:
3836
- uses: actions/checkout@v2.4.0
@@ -65,4 +63,4 @@ jobs:
6563
6664
- name: Run example notebooks
6765
run: |
68-
python -m pytest -v setup/ showcase/ cookbook/ openmm_rbfe/ networks/ --nbval-lax --nbval-cell-timeout=3000 -n auto --dist loadscope
66+
python -m pytest -v --nbval-lax --nbval-cell-timeout=3000 -n auto --dist loadscope
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
script: |
1818
var PR_HEAD_USERREPO = process.env.PR_HEAD_USERREPO;
1919
var PR_HEAD_REF = process.env.PR_HEAD_REF;
20-
github.issues.createComment({
20+
github.rest.issues.createComment({
2121
issue_number: context.issue.number,
2222
owner: context.repo.owner,
2323
repo: context.repo.repo,
24-
body: `[![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/OpenFreeEnergy/ExampleNotebooks/blob/${PR_HEAD_REF}/showcase)) :point_left: Launch a Colab session on branch ``${PR_HEAD_REF}``.
24+
body: `[![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/OpenFreeEnergy/ExampleNotebooks/blob/${PR_HEAD_REF}/showcase) :point_left: Launch a Colab session on branch _${PR_HEAD_REF}_`
2525
})
2626
env:
2727
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Test openfe doc build
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
schedule:
12+
# nightly tests, 2 am
13+
- cron: "0 2 * * *"
14+
15+
concurrency:
16+
group: "${{ github.workflow }}-${{ github.ref }}"
17+
cancel-in-progress: true
18+
19+
defaults:
20+
run:
21+
shell: bash -leo pipefail {0}
22+
23+
jobs:
24+
test-conda-build:
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- name: Checkout openfe
29+
uses: actions/checkout@v4
30+
with:
31+
repository: OpenFreeEnergy/openfe
32+
path: openfe
33+
34+
- name: Checkout ExampleNotebooks repository
35+
uses: actions/checkout@v4
36+
with:
37+
path: openfe/docs/ExampleNotebooks
38+
39+
- name: Get current date
40+
id: date
41+
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
42+
43+
- name: Install doc environment
44+
uses: mamba-org/setup-micromamba@v2
45+
with:
46+
environment-file: openfe/docs/environment.yaml
47+
cache-environment: true
48+
cache-downloads: true
49+
cache-environment-key: environment-${{ steps.date.outputs.date }}
50+
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
51+
init-shell: bash
52+
53+
- name: Build the docs
54+
run: |
55+
cd openfe
56+
# install so that we can get a version metadata we use in docs
57+
pip install . --no-deps
58+
cd docs
59+
make html

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
# OpenFE Notebooks
77

88
Collection of notebooks for the Open FreeEnergy project.
9-
These can be ran in the browser via the Binder links.
9+
These can be run in the browser via the Colab links.
1010

11-
| Binder link | Description |
11+
| Colab link | Description |
1212
| --- | --- |
1313
| [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/OpenFreeEnergy/ExampleNotebooks/blob/main/showcase/openfe_showcase.ipynb) | Start here. This notebook demonstrates how a free energy calculation can be defined, executed and analyzed using the `openfe` package. |
1414

@@ -21,7 +21,7 @@ Then you can download a copy of the notebooks:
2121

2222
- `wget -O OpenFEExampleNotebooks.tar.gz https://github.com/OpenFreeEnergy/ExampleNotebooks/tarball/main`
2323
- or (depending on your platform)
24-
- `curl -L -k -o OpenFEEXampleNotebooks.tar.gz https://github.com/OpenFreeEnergy/ExampleNotebooks/tarball/main`
24+
- `curl -L -k -o OpenFEExampleNotebooks.tar.gz https://github.com/OpenFreeEnergy/ExampleNotebooks/tarball/main`
2525

2626
Unpack, then navigate to the downloaded notebooks:
2727

0 commit comments

Comments
 (0)