deepmodeling / DMFF

DMFF (Differentiable Molecular Force Field) is a Jax-based python package that provides a full differentiable implementation of molecular force field models.
GNU Lesser General Public License v3.0
154 stars 43 forks source link

Refactor `covalent_map` and `pairs` argument. #60

Closed Roy-Kid closed 2 years ago

Roy-Kid commented 2 years ago

Refactor covalent_map and pairs argument. Detail: Now covalent_map is merged to NeighborList class, and nblist.pairs not return a (N, 3) array, which new column equivalent to previous covalent_map[pairs[:, 0], pairs[:, 1]]. All the calculators have been updated to the new format of pairs, and all tests pass.