-
Notifications
You must be signed in to change notification settings - Fork 3
Update for openfe v1.9 #190
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
Merged
Merged
Changes from 28 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
51418ff
Add various CI runners
IAlibay 99c310b
Add cpu vslow runner
IAlibay 7af3b9d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 36d56c2
update dev env
atravitz fd1694f
update ci for testing against deps main branches
atravitz 0c874f9
First attempt at updating for openfe v1.9
IAlibay fd1cda0
unpin openfe
IAlibay 47ed129
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a5e8c30
add more tokenization tests for asfe
IAlibay eb1b4f0
deal with duplicates
IAlibay fbd56ab
Some fixes
IAlibay 309f59d
Various fixes
IAlibay 0953b0c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 3b0921b
rename setup unit for ASFE
IAlibay 8d41c5d
Rename tests
IAlibay aeacb78
Update tests
IAlibay 546123f
Fix up tests
IAlibay a1bdf33
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4f2ac4f
Add news item
IAlibay 9d6b77c
update API docs
IAlibay 1d30380
Merge branch 'update-v1.9' of github.com:OpenFreeEnergy/pontibus into…
atravitz 6925f09
Add documentation to test classes for clarity
IAlibay e9e9014
Add docstring for protocol result tests
IAlibay 20d055b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0d813c9
add openff deps from main
atravitz befc3ed
Merge pull request #178 from OpenFreeEnergy/update-ci
atravitz 2921e9b
Merge branch 'main' of github.com:OpenFreeEnergy/pontibus into update…
atravitz 0ed059d
Add PR also to ci-dev-main
IAlibay 59bf03a
bump up checkout to v6
IAlibay bffe417
fix various typos
IAlibay 201a02e
Fix dev CI
IAlibay ec9978b
bump up openfe to 1.9+ in pixi.toml
IAlibay d31253e
change the message for it to work with 1.9 and 1.10
IAlibay 89a695a
fix gpu test
IAlibay b3b3bd6
Add fix for slow tests
IAlibay 2e00013
Merge branch 'main' into update-v1.9
IAlibay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,68 @@ | ||
| name: "CI - main branch of deps" | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| push: | ||
| branches: | ||
| - main | ||
| schedule: | ||
| # At 07:00 UTC on Monday and Thursday | ||
| - cron: "0 7 * * *" | ||
| workflow_dispatch: | ||
|
|
||
|
|
||
| concurrency: | ||
| group: "${{ github.workflow }}-${{ github.ref }}" | ||
| cancel-in-progress: true | ||
|
|
||
| defaults: | ||
| run: | ||
| shell: bash -l {0} | ||
|
|
||
| jobs: | ||
| tests: | ||
| runs-on: ${{ matrix.os }} | ||
| name: "${{ matrix.os }} - ${{ matrix.python-version }}" | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: ["ubuntu-latest"] | ||
| python-version: | ||
| - "3.12" | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: "Setup Micromamba" | ||
| uses: mamba-org/setup-micromamba@v2 | ||
| with: | ||
| environment-file: devtools/latest_environment.yml | ||
| environment-name: pontibus-dev | ||
| create-args: >- | ||
| python=${{ matrix.python-version }} | ||
| init-shell: bash | ||
|
|
||
| - name: "Install" | ||
| run: python -m pip install --no-deps -e . | ||
|
|
||
| - name: "Test imports" | ||
| run: | | ||
| # if we add more to this, consider changing to for + env vars | ||
| python -Ic "import pontibus; print(pontibus.__version__)" | ||
|
|
||
| - name: "Environment Information" | ||
| run: | | ||
| micromamba info | ||
| micromamba list | ||
| pip list | ||
|
|
||
| - name: "Run tests" | ||
| env: | ||
| PONTIBUS_SLOW_TESTS: TRUE | ||
| PONTIBUS_CPUVSLOW_TESTS: FALSE | ||
| PONTIBUS_GPU_TESTS: FALSE | ||
| DUECREDIT_ENABLE: 'yes' | ||
| run: | | ||
| pytest -n logical -v --durations=10 | ||
This file contains hidden or 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,45 @@ | ||
| # env for testing against pre-release versions of openfe (and any other dependencies). | ||
| name: pontibus-dev | ||
| channels: | ||
| - conda-forge | ||
| dependencies: | ||
| - pip | ||
| # keep these openff packages even though we pip install@main so that necessary deps get pulled in. | ||
| - openff-toolkit >0.16.0 | ||
| - openff-interchange >=0.4.8 | ||
| - openff-nagl-base >=0.3.3 | ||
| # OpenFE stack deps | ||
| - duecredit<0.10 | ||
| - kartograf>=1.0.0 | ||
| - konnektor | ||
| - lomap2>=3.0.0 | ||
| - numpy | ||
| - networkx | ||
| - rdkit | ||
| - packaging | ||
| - pip | ||
| - pydantic >=2.0 | ||
| - pyyaml | ||
| - coverage | ||
| - cinnabar ~=0.5.0 | ||
| - click | ||
| - typing-extensions | ||
| - openmm >=8.0.0,!=8.1.0,<8.3.0 | ||
| - openmmtools >=0.25.0 | ||
| - openmmforcefields | ||
| - openfe-analysis >=0.3.1 | ||
| - plugcli | ||
| - tqdm | ||
| # Testing deps | ||
| - pytest | ||
| - pytest-cov | ||
| - pytest-xdist | ||
| # pip deps | ||
| - pip: | ||
| - git+https://github.com/OpenFreeEnergy/openfe@main | ||
| - git+https://github.com/OpenFreeEnergy/gufe@main | ||
| - git+https://github.com/openforcefield/openff-toolkit@main | ||
| - git+https://github.com/openforcefield/openff-interchange@main | ||
| - git+https://github.com/openforcefield/openff-nagl@main | ||
| - git+https://github.com/openforcefield/openff-units@main | ||
| - git+https://github.com/openforcefield/openff-utilities@main |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,25 @@ | ||
| **Added:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Changed:** | ||
|
|
||
| * The ASFE and HybridTop Protocols have been updated to work | ||
| with openfe v1.9. Notably this means that the Protocols have | ||
| now been split into three ProtocolUnits (PR #190). | ||
|
|
||
| **Deprecated:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Removed:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Fixed:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Security:** | ||
|
|
||
| * <news item> |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -33,16 +33,16 @@ def __init__( | |
| positive and negative monoatomic ions, defaults "Na+", "Cl-" | ||
| neutralize : bool, optional | ||
| if the net charge on the chemical state is neutralized by the ions in | ||
| this solvent component. Default `True` | ||
| this solvent component. Default `False` | ||
| ion_concentration : openff.units.Quantity, optional | ||
| ionic concentration required, default 0.15 * unit.molar | ||
| ionic concentration required, default 0.0 * unit.molar | ||
| this must be supplied with units, e.g. "1.5 * unit.molar" | ||
|
Comment on lines
+36
to
39
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 Good catch! |
||
|
|
||
| Examples | ||
| -------- | ||
| To create a sodium chloride solution at 0.2 molar concentration:: | ||
|
|
||
| >>> s = SolventComponent(position_ion='Na', negative_ion='Cl', | ||
| >>> s = SolventComponent(positive_ion='Na', negative_ion='Cl', | ||
| ... ion_concentration=0.2 * unit.molar) | ||
|
|
||
| To create a methane solvent:: | ||
|
|
||
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atravitz not sure if it was intention for this not to be triggered on PR. From discussions today, it sounds like that behaviour we wanted, so I added it. However I'm happy to remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened #192 so that we can decouple it from this PR and revisit it later.