1. 18 Aug, 2020 1 commit
  2. 30 Mar, 2020 1 commit
  3. 07 Oct, 2019 2 commits
    • David Dotson's avatar
      Switched hartree ScaledUnit basis to joule · ad50ced2
      David Dotson authored
      From @peastman:
      
      > Test cases are failing. I believe it's because the parent for a ScaledUnit needs to be a Unit, not another ScaledUnit. So in the line
      >
      > ```
      >  hartree_base_unit = ScaledUnit(4.3597447222071e-18, joule_base_unit, "hartree", "Ha")
      > ```
      >
      > replace joule_base_unit with joule.
      ad50ced2
    • David Dotson's avatar
      Added hartree unit. · ce85b7f7
      David Dotson authored
      This is of immediate need to QCEngine, in particular MolSSI/QCEngine#151
      ce85b7f7
  4. 04 Dec, 2017 1 commit
  5. 02 Nov, 2016 1 commit
  6. 01 Nov, 2016 1 commit
  7. 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
  8. 27 Aug, 2015 1 commit
  9. 23 Jun, 2015 3 commits
  10. 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
  11. 08 Dec, 2014 1 commit
  12. 06 Dec, 2014 1 commit
  13. 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
  14. 03 Nov, 2014 2 commits
  15. 15 Oct, 2014 1 commit
  16. 06 Oct, 2014 4 commits
  17. 16 Jul, 2014 1 commit
  18. 09 Dec, 2013 1 commit
  19. 06 Dec, 2013 1 commit
  20. 05 Dec, 2013 1 commit
  21. 12 Jul, 2013 1 commit
  22. 20 May, 2012 1 commit
  23. 07 May, 2012 1 commit
  24. 27 Mar, 2012 1 commit
  25. 13 Mar, 2012 1 commit
  26. 11 Feb, 2012 1 commit
  27. 08 Feb, 2012 1 commit
  28. 23 Jan, 2012 2 commits
  29. 15 Nov, 2011 1 commit
  30. 18 May, 2011 1 commit