- 06 Dec, 2014 1 commit
-
-
Jason Swails authored
-
- 04 Nov, 2014 2 commits
-
-
Jason Swails authored
Add a test for the various numpy attributes (and the arguments they take) for the unit module.
-
Jason Swails authored
Traceback (most recent call last): File ".../python/tests/TestNumpyCompatibility.py", line 87, in testNumpyAttributes d = self.data.reshape((100, 3)) File ".../simtk/unit/quantity.py", line 575, in reshape return Quantity(self._value.reshape(shape, order=order)) File ".../simtk/unit/quantity.py", line 142, in __init__ if value == first_item: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() Also add a test for new unit numpy capabilities.
-
- 03 Nov, 2014 2 commits
-
-
Jason Swails authored
underlying numpy array. This function would be used in instances where, for instance, a certain API would send a flattened array of coordinates or velocities with units attached, and you wanted to reshape the array into (natom, 3) to be consistent with OpenMM's Context object.
-
Jason Swails authored
arguments and pass them to the numpy function if applicable. That way, users get the full flexibility of the numpy API on those particular methods AND get the added benefit that the result has the correct units (and it all runs fast).
-
- 15 Oct, 2014 1 commit
-
-
Peter Eastman authored
-
- 06 Oct, 2014 3 commits
-
-
Jason Swails authored
it. Not only that, I got this FutureWarning: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/simtk/unit/quantity.py:170: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future. if value == None:
-
Jason Swails authored
-
Jason Swails authored
sqrt of the variance), and average, returning a Quantity with the proper units. This should be reasonably efficient, as it takes advantage of numpy-accelerated methods if they're present.
-
- 16 Jul, 2014 1 commit
-
-
peastman authored
-
- 12 Jul, 2013 1 commit
-
-
Justin MacCallum authored
-
- 27 Mar, 2012 1 commit
-
-
Peter Eastman authored
-
- 13 Mar, 2012 1 commit
-
-
Peter Eastman authored
-
- 23 Jan, 2012 2 commits
-
-
Peter Eastman authored
-
Peter Eastman authored
-
- 12 Mar, 2011 1 commit
-
-
Peter Eastman authored
-
- 09 Mar, 2011 1 commit
-
-
Peter Eastman authored
-
- 03 Mar, 2011 1 commit
-
-
Christopher Bruns authored
Change doctests to reflect better preservation of tuples in collections of collections. Note that outer container is still converted to list...
-
- 26 Feb, 2011 1 commit
-
-
Peter Eastman authored
-