Skip to content

Commit b164c7d

Browse files
authored
Merge pull request #311 from OpenFreeEnergy/cinnabar-update
update for new cinnabar API
2 parents 64c3527 + 8419725 commit b164c7d

4 files changed

Lines changed: 7169 additions & 425 deletions

File tree

cookbook/cinnabar_absolute.ipynb

Lines changed: 105 additions & 163 deletions
Large diffs are not rendered by default.

environment.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies:
88
- nbval
99
- nglview
1010
- notebook
11-
- numpy <2.4.0 # https://github.com/OpenFreeEnergy/cinnabar/issues/198
11+
- numpy
1212
- pip
1313
- pytest
1414
- pytest-cov
@@ -17,4 +17,5 @@ dependencies:
1717
- openfe==1.11.0
1818
- openff-interchange-base != 0.5.1 # https://github.com/openforcefield/openff-interchange/issues/1450
1919
- pip:
20-
- git+https://github.com/OpenFreeEnergy/openfe_analysis@main # Use coda-forge v0.5 after ne wopenfe release releases pins on openfe-analysis
20+
- git+https://github.com/OpenFreeEnergy/openfe_analysis@main # Use conda-forge v0.5 after new openfe release updates pins on openfe-analysis
21+
- git+https://github.com/OpenFreeEnergy/cinnabar@main # Use conda-forge v0.6.0 after new openfe release updates pins on cinnabar

openmm_septop/septop_analysis.ipynb

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"text": [
3838
" % Total % Received % Xferd Average Speed Time Time Time Current\n",
3939
" Dload Upload Total Spent Left Speed\n",
40-
"100 12.7M 100 12.7M 0 0 604k 0 0:00:21 0:00:21 --:--:-- 693k\n",
40+
"100 12.7M 100 12.7M 0 0 2951k 0 0:00:04 0:00:04 --:--:-- 2951k\n",
4141
"Archive: septop_results.zip\n",
4242
" inflating: septop_results/pre_openfe_v1.11/results_2/rbfe_1_7b.json \n",
4343
" inflating: septop_results/pre_openfe_v1.11/results_2/rbfe_7a_7b.json \n",
@@ -403,8 +403,8 @@
403403
" m = Measurement(\n",
404404
" labelA=ligA,\n",
405405
" labelB=ligB,\n",
406-
" DG=DDGbind * unit.kilocalorie_per_mole,\n",
407-
" uncertainty=bind_unc * unit.kilocalorie_per_mole,\n",
406+
" DG=float(DDGbind) * unit.kilocalorie_per_mole,\n",
407+
" uncertainty=float(bind_unc) * unit.kilocalorie_per_mole,\n",
408408
" computational=True,\n",
409409
" )\n",
410410
" fe_results.append(m)\n",
@@ -492,7 +492,25 @@
492492
"execution_count": 11,
493493
"id": "3b81c26b-4e3d-4bca-bfb1-4f72c75ec1bf",
494494
"metadata": {},
495-
"outputs": [],
495+
"outputs": [
496+
{
497+
"name": "stderr",
498+
"output_type": "stream",
499+
"text": [
500+
"/Users/joshua/mambaforge/envs/openfe_dev/lib/python3.12/site-packages/openmoltools/utils.py:9: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.\n",
501+
" from pkg_resources import resource_filename\n",
502+
"/Users/joshua/mambaforge/envs/openfe_dev/lib/python3.12/site-packages/Bio/Application/__init__.py:39: BiopythonDeprecationWarning: The Bio.Application modules and modules relying on it have been deprecated.\n",
503+
"\n",
504+
"Due to the on going maintenance burden of keeping command line application\n",
505+
"wrappers up to date, we have decided to deprecate and eventually remove these\n",
506+
"modules.\n",
507+
"\n",
508+
"We instead now recommend building your command line and invoking it directly\n",
509+
"with the subprocess module.\n",
510+
" warnings.warn(\n"
511+
]
512+
}
513+
],
496514
"source": [
497515
"# Specify paths to result directories\n",
498516
"results_dir = [pathlib.Path(\"septop_results/current/\")]\n",
@@ -1145,7 +1163,7 @@
11451163
],
11461164
"metadata": {
11471165
"kernelspec": {
1148-
"display_name": "Python 3 (ipykernel)",
1166+
"display_name": "openfe_dev",
11491167
"language": "python",
11501168
"name": "python3"
11511169
},
@@ -1159,7 +1177,7 @@
11591177
"name": "python",
11601178
"nbconvert_exporter": "python",
11611179
"pygments_lexer": "ipython3",
1162-
"version": "3.13.13"
1180+
"version": "3.12.9"
11631181
},
11641182
"widgets": {
11651183
"application/vnd.jupyter.widget-state+json": {

0 commit comments

Comments
 (0)