Skip to content
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

Convert RadiallySymmetricRestraint Forces to CV Forces #365

Merged
merged 8 commits into from
Aug 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions devtools/appveyor/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ $MINICONDA_URL = "http://repo.continuum.io/miniconda/"

function DownloadMiniconda ($python_version, $platform_suffix) {
$webclient = New-Object System.Net.WebClient
if ($python_version -match "3.4") {
$filename = "Miniconda3-3.7.3-Windows-" + $platform_suffix + ".exe"
} else {
$filename = "Miniconda-3.7.3-Windows-" + $platform_suffix + ".exe"
}
$filename = "Miniconda3-4.5.4-Windows-" + $platform_suffix + ".exe"
$url = $MINICONDA_URL + $filename

$basedir = $pwd.Path + "\"
Expand Down Expand Up @@ -86,7 +82,6 @@ function UpdateConda ($python_home) {
Start-Process -FilePath "$conda_path" -ArgumentList $args -Wait -Passthru
}


function main () {
InstallMiniconda $env:PYTHON_VERSION $env:PYTHON_ARCH $env:PYTHON
UpdateConda $env:PYTHON
Expand Down
4 changes: 3 additions & 1 deletion devtools/conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ requirements:
- numpy
- scipy
- six
- openmm
- openmm >=7.2
- parmed
- mdtraj
# NetCDF4 on windows conda has DLL issues, so pin libnetcdf
- netcdf4
- libnetcdf ==4.6.1=h183b1a9_3 # [win]
- pyyaml


Expand Down
15 changes: 15 additions & 0 deletions docs/releasehistory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ New features
control global variables (`#363 <https://github.com/choderalab/openmmtools/pull/363>`_).
- Allow restraint force classes to be controlled by a parameter other than ``lambda_restraints``. This will enable
multi-restraints simulations (`#363 <https://github.com/choderalab/openmmtools/pull/363>`_).
- ``RadiallySymmetricRestraintForce`` and all subclasses are now a ``CustomCVForce`` subclass wrapping their
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should warn that this may be an API-breaking change in the changelog!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did?

RadiallySymmetricRestraintForce and all subclasses are now a CustomCVForce subclass wrapping their respective CustomBondForce and CustomCentroidBondForce objects. This breaks backwards compatibility, but enables tracking the restraint distances through the new SamplerSate collective variable features.

Emphasis mine

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just meant that there might be a "Warnings" section rather than burying this in the "Features" (since it may break your program, which may not be a "feature").

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point. I'll make this more visible

respective ``CustomBondForce`` and ``CustomCentroidBondForce`` objects. This breaks backwards compatibility, but
enables tracking the restraint distances through the new ``SamplerSate`` collective variable features.

Deprecated
----------
Expand All @@ -24,6 +27,18 @@ Deprecated
- Deprecated ``update_alchemical_charges`` in ``AlchemicalState`` in anticipation of the new implementation of the
exact PME that will be based on the ``NonbondedForce`` offsets rather than ``updateParametersInContext()``.

Compatibility Warnings
----------------------
- ``RadiallySymmetricRestraintForce``'s conversion to ``CustomCVForce``'s break the backwards compatibility with older
codes which implement subclasses of it. The largest change is how the Energy Function is implemented, and subclass
hierarchy. E.g. All these classes are now ``CustomCVForce``'s instead of ``CustomBondForce`` and
``CustomCentroidBondForce`` objects.

- This affects ``RadiallySymmetricRestraintForce``,
``RadiallySymmetricCentroidRestraintForce``, ``RadiallySymmetricBondRestraintForce``,
``HarmonicRestraintForceMixIn``, ``HarmonicRestraintForce``, ``HarmonicRestraintBondForce``,
``FlatBottomRestraintForceMixIn``, ``FlatBottomRestraintForce``, and ``FlatBottomRestraintBondForce``.


0.15.0 - Restraint forces
=========================
Expand Down
Loading