fix issues causing failed tests

This commit is contained in:
Axel Kohlmeyer
2025-06-18 07:31:10 -04:00
parent 004816a4ba
commit 8c0894fa84
2 changed files with 5 additions and 5 deletions

View File

@ -112,7 +112,7 @@ class command_wrapper:
# Python 3.6+ maintains ordering of kwarg keys
for kw, arg in kwargs.items():
cmd_args.append(kw)
if isinstance(arg,bool):
if isinstance(arg, bool):
cmd_args.append("true" if arg else "false")
else:
cmd_args.append(str(self._wrap_args(arg)))

View File

@ -53,7 +53,7 @@ class PythonCmdWrapper(unittest.TestCase):
types = [1, 1]
self.assertEqual(self.lmp.create_atoms(2, id=None, type=types, x=x), 2)
self.assertEqual(self.lmp.create_atoms(2, atomid=None, atype=types, x=x), 2)
self.assertEqual(self.lmp.extract_global("natoms"), 2)
pos = self.lmp.numpy.extract_atom("x")
self.assertEqual(pos.shape[0], 2)