Skip to content

Commit

Permalink
Minor cleaning.
Browse files Browse the repository at this point in the history
  • Loading branch information
sschoenholz committed Dec 7, 2019
1 parent 65d0ecf commit 92b02e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions examples/minimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import jax.numpy as np
from jax import jit
from jax_md import space, energy, minimize, quantity, smap, partition
from jax_md import space, energy, minimize, quantity, smap
from jax_md.util import f32, i32

def main(unused_argv):
Expand Down Expand Up @@ -76,11 +76,5 @@ def main(unused_argv):
print('{:.2f}\t{:.2f}\t{:.2f}'.format(
step, energy_fn(R), np.max(force_fn(R))))

verlet_list_fn = partition.verlet_list(metric, box_size, 2., R)
idx = verlet_list_fn(R)
print(idx.shape)
print(idx)
print(np.mean(idx == idx.shape[0]))

if __name__ == '__main__':
app.run(main)
1 change: 0 additions & 1 deletion tests/.#space_test.py

This file was deleted.

0 comments on commit 92b02e7

Please sign in to comment.