1. 03 Apr, 2020 1 commit
  2. 01 Apr, 2020 5 commits
  3. 31 Mar, 2020 3 commits
  4. 30 Mar, 2020 4 commits
  5. 29 Mar, 2020 1 commit
    • Rasmus Wriedt Larsen's avatar
      Minor Python tweaks (#2616) · c87b96fb
      Rasmus Wriedt Larsen authored
      * Use list-comprehension in Python code
      
      A minor change, but slighly easier to understand the initialization of
      `parent_exclude_list` in my opinion.
      
      * Implement __ne__ in Python classes that has __eq__
      
      In Python 3, `__ne__` is automatically implemented as `not __eq__`.
      
      However, in Python 2 it seems to be implemented as `not is` (so based on object
      identity).
      
      Based on setup.py [0] which says that "OpenMM requires Python 2.7 or better", it
      should be useful to have better support for Python 2 :)
      
      This was already done in 4 of the 12 classes that implements `__eq__`
      
      ```
      >>> class WildCard(object):
      ...     def __eq__(self, other): return True
      
      >>> w = WildCard()
      
      >>> w == 42
      True
      
      >>> w != 42
      True
      
      >>> w != w
      False
      ```
      
      [0]: https://github.com/openmm/openmm/blob/5cef29ce8d4e17b6d0f9fd8a3c6cc1669ca0ba2b/wrappers/python/setup.py#L237
      
      * Use umambiguous floor division for index calculations in Python
      
      This makes the code work as intended if run...
      c87b96fb
  6. 28 Mar, 2020 3 commits
  7. 27 Mar, 2020 2 commits
  8. 24 Mar, 2020 1 commit
  9. 23 Mar, 2020 1 commit
    • Alex Henrie's avatar
      Remove unused variables (#2605) · a752d258
      Alex Henrie authored
      * Remove unused variable from CpuCustomGBForce::calculateIxn
      
      * Remove unused variable from CpuCalcCustomManyParticleForceKernel::initialize
      
      * Remove unused variable from CudaCalcCustomCVForceKernel::initialize
      
      * Remove unused variable from ReferenceCalcCustomManyParticleForceKernel::initialize
      
      * Remove unused variables from ReferenceObc::computeBornEnergyForces
      
      * Remove unused variable from AmoebaTorsionTorsionForceProxy::serialize
      a752d258
  10. 19 Mar, 2020 2 commits
  11. 17 Mar, 2020 3 commits
  12. 16 Mar, 2020 1 commit
  13. 12 Mar, 2020 3 commits
  14. 11 Mar, 2020 3 commits
  15. 10 Mar, 2020 3 commits
  16. 06 Mar, 2020 2 commits
  17. 04 Mar, 2020 2 commits