We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5ec39b9 + ead0380 commit 5c6f369Copy full SHA for 5c6f369
1 file changed
so3lr/jaxmd_utils.py
@@ -47,7 +47,8 @@ def featurize(R, neighbor, neighbor_lr, **kwargs):
47
48
if 'perturbation' in kwargs:
49
pert = kwargs.get('perturbation')
50
- positions = transform(pert, positions)
+ if positions is not None:
51
+ positions = transform(pert, positions)
52
box = transform(pert, box)
53
54
d = jax.vmap(partial(displacement_fn, **kwargs))
0 commit comments