There was an error while loading. Please reload this page.
1 parent beed905 commit 20e1463Copy full SHA for 20e1463
pylammpsmpi/wrapper/ase.py
@@ -278,8 +278,6 @@ def interactive_structure_setter(
278
command=f"mass {id_eam + 1:3d} {1.00:f}",
279
)
280
positions = _vector_to_lammps(vector=structure.positions, prism=self._prism)
281
- if positions is None:
282
- positions = structure.positions.flatten()
283
velocities = _vector_to_lammps(
284
vector=structure.get_velocities(),
285
prism=self._prism,
@@ -478,7 +476,7 @@ def cell_is_skewed(cell, tolerance=1.0e-8):
478
476
479
477
480
def _vector_to_lammps(vector, prism):
481
- if vector is not None and np.any(vector):
+ if vector is not None:
482
if not _check_ortho_prism(prism=prism):
483
vector = prism.vector_to_lammps(vector)
484
return vector.flatten()
0 commit comments