1. 04 Dec, 2017 1 commit
  2. 02 Nov, 2016 1 commit
  3. 01 Nov, 2016 1 commit
  4. 03 Nov, 2015 1 commit
    • Robert McGibbon's avatar
      Improve docstrings · 98d053d4
      Robert McGibbon authored
      Swigged python docstrings now include documented return values and type
      information or their arguments. They are generated in numpydoc format.
      Furthermore, all of the Python app layer docstrings have been changed
      to numpydoc format. The filterPythonFiles.py script which helps to
      generate the Doxygen Python API docs has been updated to reflect these
      changes.
      98d053d4
  5. 27 Aug, 2015 1 commit
  6. 23 Jun, 2015 3 commits
  7. 19 Jun, 2015 2 commits
    • Jason Swails's avatar
      Delete now out-of-date docs as well as adding __array_priority__ to Quantity. · ba1af1ee
      Jason Swails authored
      This should be *lower* than that of Unit (and ScaledUnit/BaseUnit), since we
      still want Units to take priority over Quantities (but Quantity to take
      precedence over regular ndarrays) for reasons like this:
      
      >>> a = np.array([1]) * u.angstroms
      >>> b = a * u.angstroms # should be np.array([1])*u.angstroms**2
      >>> np.arange(10) * a # utilize broadcasting
      [1 2 3 4 5 6 7 8 9 10] A**2
      ba1af1ee
    • Jason Swails's avatar
      A large number of unit cleanups and fix numpy wart · 4ae68749
      Jason Swails authored
      The main thing that's done here is that numpy arrays can be given units via the
      * operator, rather than relying on the Quantity constructor
      
      e.g.,
      
      >>> import numpy as np
      >>> np.zeros(10) * u.angstroms
      Quantity(value=array([ 0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.]), unit=angstrom)
      
      yay!
      4ae68749
  8. 08 Dec, 2014 1 commit
  9. 06 Dec, 2014 1 commit
  10. 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
  11. 03 Nov, 2014 2 commits
  12. 15 Oct, 2014 1 commit
  13. 06 Oct, 2014 4 commits
  14. 16 Jul, 2014 1 commit
  15. 09 Dec, 2013 1 commit
  16. 06 Dec, 2013 1 commit
  17. 05 Dec, 2013 1 commit
  18. 12 Jul, 2013 1 commit
  19. 20 May, 2012 1 commit
  20. 07 May, 2012 1 commit
  21. 27 Mar, 2012 1 commit
  22. 13 Mar, 2012 1 commit
  23. 11 Feb, 2012 1 commit
  24. 08 Feb, 2012 1 commit
  25. 23 Jan, 2012 2 commits
  26. 15 Nov, 2011 1 commit
  27. 18 May, 2011 1 commit
  28. 12 Mar, 2011 1 commit
  29. 09 Mar, 2011 1 commit
  30. 08 Mar, 2011 1 commit
  31. 03 Mar, 2011 1 commit