GithubHelp home page GithubHelp logo

Comments (8)

VijayPande avatar VijayPande commented on May 13, 2024

+1 good point

Sent from my Phone. Sorry for the brevity or unusual tone.

On Aug 1, 2013, at 12:42 PM, John Chodera [email protected] wrote:

Is there a way to access the OpenMM version number via the Python API?

Setting, for example, simtk.openmm.version to something appropriate, or adding a simtk.openmm.getVersion() method would be helpful.


Reply to this email directly or view it on GitHub.

from openmm.

rmcgibbo avatar rmcgibbo commented on May 13, 2024

mm.Platform.getVersion I think.

-Robert
Sent from my iPhone.

On Thu, Aug 1, 2013 at 12:49 PM, Vijay Pande [email protected]
wrote:

+1 good point
Sent from my Phone. Sorry for the brevity or unusual tone.
On Aug 1, 2013, at 12:42 PM, John Chodera [email protected] wrote:

Is there a way to access the OpenMM version number via the Python API?

Setting, for example, simtk.openmm.version to something appropriate, or adding a simtk.openmm.getVersion() method would be helpful.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub:
#88 (comment)

from openmm.

rmcgibbo avatar rmcgibbo commented on May 13, 2024

A useful addition might be to have the git commit tag of the installation accessible from the python API. This is useful for people using the dev branch as opposed to the released versions.

I can submit a PR for this, based on code from numpy (BSD). 

-Robert
Sent from my iPhone.

On Thu, Aug 1, 2013 at 12:49 PM, Vijay Pande [email protected]
wrote:

+1 good point
Sent from my Phone. Sorry for the brevity or unusual tone.
On Aug 1, 2013, at 12:42 PM, John Chodera [email protected] wrote:

Is there a way to access the OpenMM version number via the Python API?

Setting, for example, simtk.openmm.version to something appropriate, or adding a simtk.openmm.getVersion() method would be helpful.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub:
#88 (comment)

from openmm.

jlmaccal avatar jlmaccal commented on May 13, 2024

A useful addition might be to have the git commit tag of the installation accessible from the python API. This is useful for people using the dev branch as opposed to the released versions.

I think that would be a great addition.

from openmm.

jchodera avatar jchodera commented on May 13, 2024

A useful addition might be to have the git commit tag of the installation accessible from the python API. This is useful for people using the dev branch as opposed to the released versions.

Agreed!

from openmm.

jchodera avatar jchodera commented on May 13, 2024

simtk.openmm.__version__ still just reports 1.0. PEP 8 suggests this string should report the current version. Could we change this to report the full_version or short_version by reporting it from the new simtk.openmm.version module?

>>> print simtk.openmm.__version__
1.0

from openmm.

rmcgibbo avatar rmcgibbo commented on May 13, 2024

It should be just a small change to this, with a little import . There's also this line, but I'm not sure if it actually has any effect.

from openmm.

peastman avatar peastman commented on May 13, 2024

I just checked in the fix. simtk.openmm.version is now set from Platform.getOpenMMVersion().

from openmm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.