Skip to content

Commit 5c6f369

Browse files
authored
Merge pull request #35 from couxxuoc/fix/33-check-positions-jaxmd_utils
Fix checking the non-fractional positions (fixes #33)
2 parents 5ec39b9 + ead0380 commit 5c6f369

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

so3lr/jaxmd_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def featurize(R, neighbor, neighbor_lr, **kwargs):
4747

4848
if 'perturbation' in kwargs:
4949
pert = kwargs.get('perturbation')
50-
positions = transform(pert, positions)
50+
if positions is not None:
51+
positions = transform(pert, positions)
5152
box = transform(pert, box)
5253

5354
d = jax.vmap(partial(displacement_fn, **kwargs))

0 commit comments

Comments
 (0)