Skip to content

Commit

Permalink
The version of JAX has been restricted to between 0.4.1 and 0.4.24. &…
Browse files Browse the repository at this point in the history
… Fix dtype bug in NoCutoffNBList
  • Loading branch information
WangXinyan940 committed Mar 7, 2024
1 parent 285dd85 commit e299ced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dmff/common/nblist.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _do_cov_map(self, pairs):
def allocate(self, coords, box=None):
self._positions = coords # cache it
natoms = coords.shape[0]
nblist = np.fromiter(permutations(range(natoms), 2), dtype=np.dtype(int, 2))
nblist = np.fromiter(permutations(range(natoms), 2), dtype=np.dtype((int, 2)))
nlist = nblist[nblist[:, 0] < nblist[:, 1]]
if self.capacity_multiplier is None:
self.capacity_multiplier = int(nlist.shape[0] * 1.3)
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

install_requires = [
"numpy>=1.18",
"jax<=0.4.24, >=0.4.1",
"openmm>=7.6.0",
"freud-analysis",
"networkx>=3.0",
Expand Down

0 comments on commit e299ced

Please sign in to comment.