Unverified Commit e53bdc5e authored by Peter Eastman's avatar Peter Eastman Committed by GitHub
Browse files

Top level Python module is now "openmm" (#3000)

* Top level Python module is now "openmm"

* Updated module names in examples

* Updated module names in documentation

* Updated module in CI scripts

* Added deprecation warning
parent eff1f26e
""" """
Tests the functionality in the simtk.unit package. Tests the functionality in the openmm.unit package.
""" """
from __future__ import division from __future__ import division
from simtk import unit as u from openmm import unit as u
import copy import copy
import math import math
import unittest import unittest
...@@ -672,7 +672,7 @@ class TestNumpyUnits(QuantityTestCase): ...@@ -672,7 +672,7 @@ class TestNumpyUnits(QuantityTestCase):
def testNumpyIsString(self): def testNumpyIsString(self):
""" Tests the internal _is_string method with numpy Quantities """ """ Tests the internal _is_string method with numpy Quantities """
from simtk.unit.quantity import _is_string from openmm.unit.quantity import _is_string
a = np.array([[1, 2, 3], [4, 5, 6]]) a = np.array([[1, 2, 3], [4, 5, 6]])
self.assertIsInstance("", str) self.assertIsInstance("", str)
self.assertTrue(_is_string("")) self.assertTrue(_is_string(""))
......
""" Tests the Vec3 object """ """ Tests the Vec3 object """
from unittest import TestCase from unittest import TestCase
from simtk.openmm import Vec3 from openmm import Vec3
class TestVectors(TestCase): class TestVectors(TestCase):
""" Tests the Vec3 type """ """ Tests the Vec3 type """
......
from simtk.openmm.app import * from openmm.app import *
from simtk.openmm import * from openmm import *
from simtk.unit import * from openmm.unit import *
def validateConstraints(self, topology, system, constraints_value, rigidWater_value): def validateConstraints(self, topology, system, constraints_value, rigidWater_value):
""" Given a Topology, System, a value for 'constraints' and a value for """ Given a Topology, System, a value for 'constraints' and a value for
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment