Skip to content

Commit 08a7510

Browse files
committed
fix
1 parent c863a2c commit 08a7510

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

pylammpsmpi/wrapper/concurrent.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -417,19 +417,18 @@ def set_fix_external_callback(self, *args):
417417
Because the LAMMPS instance is not available at this stage, we insert a placeholder in its position, which will later be replaced with the actual LAMMPS instance during deserialization.
418418
"""
419419
data = [args[0], dumps(args[1])]
420-
if len(args) == 3:
421-
if args[2] is not None:
422-
data.append(
423-
[
424-
(
425-
dumps("lammps")
426-
if hasattr(arg, "__class__")
427-
and arg.__class__.__name__ == "LammpsLibrary"
428-
else dumps(arg)
429-
)
430-
for arg in args[2]
431-
]
432-
)
420+
if len(args) == 3 and args[2] is not None:
421+
data.append(
422+
[
423+
(
424+
dumps("lammps")
425+
if hasattr(arg, "__class__")
426+
and arg.__class__.__name__ == "LammpsLibrary"
427+
else dumps(arg)
428+
)
429+
for arg in args[2]
430+
]
431+
)
433432
return self._send_and_receive_dict(
434433
command="set_fix_external_callback", data=data
435434
)

0 commit comments

Comments
 (0)