1. 04 Nov, 2014 2 commits
    • Jason Swails's avatar
      Oops... Forgot unit on the reshape command. · 5b4abbb5
      Jason Swails authored
      Add a test for the various numpy attributes (and the arguments they take) for
      the unit module.
      5b4abbb5
    • Jason Swails's avatar
      Fix another small bug for unit handling with numpy arrays. Fixes the exception: · a5c00fa5
      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.
      a5c00fa5
  2. 03 Nov, 2014 2 commits
  3. 30 Oct, 2014 4 commits
  4. 28 Oct, 2014 2 commits
  5. 27 Oct, 2014 7 commits
  6. 26 Oct, 2014 1 commit
  7. 24 Oct, 2014 1 commit
  8. 23 Oct, 2014 8 commits
  9. 22 Oct, 2014 5 commits
  10. 21 Oct, 2014 2 commits
  11. 15 Oct, 2014 4 commits
  12. 14 Oct, 2014 2 commits