1. 04 Nov, 2014 1 commit
    • 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. 15 Oct, 2014 1 commit
  4. 06 Oct, 2014 3 commits
  5. 16 Jul, 2014 1 commit
  6. 12 Jul, 2013 1 commit
  7. 27 Mar, 2012 1 commit
  8. 13 Mar, 2012 1 commit
  9. 23 Jan, 2012 2 commits
  10. 12 Mar, 2011 1 commit
  11. 09 Mar, 2011 1 commit
  12. 03 Mar, 2011 1 commit
  13. 26 Feb, 2011 1 commit