8000 Fix/openmm namespace change by mikemhenry · Pull Request #1176 · ParmEd/ParmEd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix/openmm namespace change #1176

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 1 commit into from
Jun 10, 2021

Conversation

mikemhenry
Copy link
Contributor

Like #1173 this PR address the namespace changes coming to openMM, but does this in a backwards compatible way. The main issue I ran into using the openMM dev build was the logic on how parmed checks the version/capabilities of openMM.

>>> from simtk.openmm.app.internal.unitcell import reducePeriodicBoxVectors
Warning: importing 'simtk.openmm' is deprecated.  Import 'openmm' instead.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'simtk.openmm.app.internal'
>>> from openmm.app.internal.unitcell import reducePeriodicBoxVectors
>>> 

I'm not sure when the next parmed release is planned, but this change is backwards compatible with other openmm versions and perhaps is a good stopgap for users that want to use the latest version of both openmm and parmed.

Copy link
Contributor
@swails swails left a comment

Choose a reason for hiding this comment

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

Thanks!

@swails swails merged commit cac5032 into ParmEd:master Jun 10, 2021
@mikemhenry mikemhenry deleted the fix/openmm_namespace_change_1 branch June 15, 2021 15:19
swails pushed a commit to swails/ParmEd that referenced this pull request Aug 28, 2021
swails added a commit that referenced this pull request Aug 28, 2021
…ds compatible (#1176) (#1187)

Co-authored-by: Mike Henry <11765982+mikemhenry@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0