Skip to content

Commit ce90abf

Browse files
authored
Merge branch 'main' into cofactors
2 parents fcc20dd + cef0451 commit ce90abf

90 files changed

Lines changed: 60877 additions & 11515 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.binder/environment.yml

Lines changed: 3 additions & 4 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
@@ -24,9 +23,9 @@ dependencies:
2423
- pytest-cov
2524
- pytest-xdist
2625
- pydantic
27-
- python==3.11.*
26+
- python
2827
- rdkit
2928
- typing_extensions
30-
- gufe>=0.9.4
31-
- openfe>=0.13.0
29+
- gufe>=1.7.0
30+
- openfe>=1.7.0
3231
- py3dmol

.github/workflows/CI.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ on:
44
push:
55
branches:
66
- main
7-
- master
87
pull_request:
98
branches:
109
- main
11-
- master
1210
schedule:
1311
# nightly tests, 2 am
1412
- cron: "0 2 * * *"
@@ -23,31 +21,34 @@ concurrency:
2321

2422
defaults:
2523
run:
26-
shell: bash -l {0}
24+
shell: bash -leo pipefail {0}
2725

2826
jobs:
2927
test:
3028
runs-on: ${{ matrix.os }}
3129
strategy:
3230
fail-fast: false
3331
matrix:
34-
os: [ubuntu-latest, macos-latest]
35-
python-version: ["3.11",]
32+
os: ["ubuntu-latest", "macos-latest"]
33+
python-version: ["3.12"]
3634

3735
steps:
3836
- uses: actions/checkout@v2.4.0
37+
38+
- name: Get current date
39+
id: date
40+
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
3941

40-
- uses: conda-incubator/setup-miniconda@v2.1.1
42+
- uses: mamba-org/setup-micromamba@v1
4143
with:
42-
python-version: "${{ matrix.python-version }}"
4344
environment-file: .binder/environment.yml
44-
activate-environment: test
45-
auto-activate-base: false
46-
mamba-version: "*"
47-
miniforge-version: latest
48-
miniforge-variant: Mambaforge
49-
use-mamba: true
50-
channel-priority: true
45+
cache-environment: true
46+
cache-downloads: true
47+
cache-environment-key: environment-${{ steps.date.outputs.date }}
48+
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
49+
create-args: >-
50+
python=${{ matrix.python-version }}
51+
init-shell: bash
5152

5253
- name: Additional info about the build
5354
run: |
@@ -57,9 +58,9 @@ jobs:
5758
5859
- name: Environment Information
5960
run: |
60-
conda info
61-
conda list
61+
micromamba info
62+
micromamba list
6263
6364
- name: Run example notebooks
6465
run: |
65-
python -m pytest -v setup/ openmm_rbfe/ networks/ --nbval-lax -n auto --dist loadscope
66+
python -m pytest -v --nbval-lax --nbval-cell-timeout=3000 -n auto --dist loadscope

.github/workflows/build-image.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
#./.github/workflows/binder-badge.yaml
2-
name: Binder Badge
1+
#./.github/workflows/colab-badge.yaml
2+
name: Colab Badge
33
on:
44
pull_request_target:
55
types: [opened]
66

77
jobs:
8-
binder:
8+
colab:
99
runs-on: ubuntu-latest
1010
permissions:
1111
pull-requests: write
1212
steps:
13-
- name: comment on PR with Binder link
14-
uses: actions/github-script@v3
13+
- name: comment on PR with Colab link
14+
uses: actions/github-script@v8
1515
with:
1616
github-token: ${{secrets.GITHUB_TOKEN}}
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: `[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/${PR_HEAD_USERREPO}/${PR_HEAD_REF}) :point_left: Launch a binder notebook on branch _${PR_HEAD_USERREPO}/${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-openfe-docs-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

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ ci:
55

66
files: (^notebooks)
77
repos:
8-
- repo: https://github.com/psf/black
9-
rev: 22.3.0
8+
- repo: https://github.com/psf/black-pre-commit-mirror
9+
rev: 25.9.0
1010
hooks:
1111
- id: black
12-
- repo: https://github.com/psf/black
13-
rev: 22.3.0
12+
- repo: https://github.com/psf/black-pre-commit-mirror
13+
rev: 25.9.0
1414
hooks:
1515
- id: black-jupyter

README.md

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,27 @@
11
[![Logo](https://img.shields.io/badge/OSMF-OpenFreeEnergy-%23002f4a)](https://openfree.energy/)
22
[![full_tests](https://github.com/OpenFreeEnergy/ExampleNotebooks/actions/workflows/CI.yml/badge.svg)](https://github.com/OpenFreeEnergy/ExampleNotebooks/actions/workflows/CI.yml)
33
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/OpenFreeEnergy/ExampleNotebooks/master.svg)](https://results.pre-commit.ci/latest/github/OpenFreeEnergy/ExampleNotebooks/main)
4-
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/OpenFreeEnergy/ExampleNotebooks/blob/main/openmm_rbfe/OpenFE_showcase_1_RBFE_of_T4lysozyme.ipynb)
4+
[![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)
55

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
| --- | --- |
13-
| [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/OpenFreeEnergy/ExampleNotebooks/blob/main/openmm_rbfe/OpenFE_showcase_1_RBFE_of_T4lysozyme.ipynb) | Start here. This notebook demonstrates how a free energy calculation can be defined, executed and analyzed using the `openfe` package. |
14-
| [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/OpenFreeEnergy/ExampleNotebooks/HEAD?labpath=openmm-rbfe%2FApplyingProtocolToNetworkQuickrunDemo.ipynb) | Demonstrating how to plan a free energy network and apply a protocol Note: This notebook might not load if Binder is experiencing heavy usage. |
13+
| [![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. |
1514

1615
## Running these notebooks locally
1716

1817
To run these notebooks locally you will need to install the `openfe` package,
19-
this is best done using [miniconda](https://docs.conda.io/en/latest/miniconda.html)
20-
21-
Once miniconda is installed, from a terminal run:
22-
23-
- `conda create -n openfe -c conda-forge openfe jupyter MDAnalysis nglview`
24-
- `conda activate openfe`
18+
this is best done using [the instuctions here](https://docs.openfree.energy/en/stable/installation.html)
2519

2620
Then you can download a copy of the notebooks:
2721

28-
- https://github.com/OpenFreeEnergy/ExampleNotebooks/archive/refs/tags/nov-2022.tar.gz
29-
30-
Or via the command line as:
31-
32-
- `wget -O OpenFEExampleNotebooks.tar.gz https://github.com/OpenFreeEnergy/ExampleNotebooks/tarball/master`
22+
- `wget -O OpenFEExampleNotebooks.tar.gz https://github.com/OpenFreeEnergy/ExampleNotebooks/tarball/main`
3323
- or (depending on your platform)
34-
- `curl -L -k -o OpenFEEXampleNotebooks.tar.gz https://github.com/OpenFreeEnergy/ExampleNotebooks/tarball/master`
24+
- `curl -L -k -o OpenFEExampleNotebooks.tar.gz https://github.com/OpenFreeEnergy/ExampleNotebooks/tarball/main`
3525

3626
Unpack, then navigate to the downloaded notebooks:
3727

abfe_tutorial/abfe-cycle.png

151 KB
Loading

0 commit comments

Comments
 (0)