Skip to content

Commit cd2c96c

Browse files
author
Leimeroth
committed
convert cmdargs str to list
1 parent 1d3fd08 commit cd2c96c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

calphy/helpers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ def create_object(
7272
if script_mode:
7373
lmp = LammpsScript()
7474
else:
75-
if cmdargs == []:
75+
if cmdargs == "":
7676
cmdargs = None
77+
else:
78+
cmdargs = cmdargs.split()
7779
lmp = LammpsLibrary(cores=cores, working_directory=directory, cmdargs=cmdargs)
7880

7981
commands = [

calphy/input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class MD(BaseModel, title="MD specific input options"):
185185
Union[float, conlist(float, min_length=2, max_length=2)],
186186
Field(default=0.1, gt=0),
187187
]
188-
cmdargs: Annotated[List, Field(default=[])]
188+
cmdargs: Annotated[str, Field(default="")]
189189
init_commands: Annotated[List, Field(default=[])]
190190

191191

0 commit comments

Comments
 (0)