Code Monkey home page Code Monkey logo

Comments (2)

dominicrufa avatar dominicrufa commented on July 3, 2024 1

i hadn't read through this thoroughly: https://docs.openforcefield.org/projects/interchange/en/stable/using/collections.html. apologies, but thank you for the clarification!

from openff-interchange.

mattwthompson avatar mattwthompson commented on July 3, 2024

These are Pint-styled units from https://github.com/openforcefield/openff-units

I don't think I can make guarantees right now, but this is something to check. (This is the only part of the codebase that is sloppy with units, since I wasn't able to get JAX to understand them). Until then, the units are inspectable, albeit a little tucked away, in the API. In this case the units appear to match what's in the SMIRNOFF force field (AKMA-ish), if you're using a different source this might not be true:

In [22]: {
    ...:     parameter.units
    ...:     for potential in out["Bonds"].potentials.values()
    ...:     for parameter in potential.parameters.values()
    ...: }
Out[22]: {<Unit('angstrom')>, <Unit('kilocalorie / angstrom ** 2 / mole')>}

In [23]: sage['Bonds'].parameters[-1]
Out[23]: <BondType with smirks: [#8:1]-[#1:2]  id: b88  length: 0.9716763312559 angstrom  k: 1087.053566377 kilocalorie / angstrom ** 2 / mole  >
 

from openff-interchange.

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.