Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion calphy/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def create_object(
else:
if cmdargs == "":
cmdargs = None
elif isinstance(cmdargs, str):
cmdargs = cmdargs.split()
lmp = LammpsLibrary(cores=cores, working_directory=directory, cmdargs=cmdargs)

commands = [
Expand Down Expand Up @@ -129,7 +131,7 @@ def set_mass(lmp, options):

else:
for i in range(options.n_elements):
lmp.command(f"mass {i+1} {options.mass[i]}")
lmp.command(f"mass {i + 1} {options.mass[i]}")
return lmp


Expand Down
1 change: 0 additions & 1 deletion calphy/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ class Calculation(BaseModel, title="Main input class"):

@model_validator(mode="after")
def _validate_all(self) -> "Input":

if not (len(self.element) == len(self.mass)):
raise ValueError("mass and elements should have same length")

Expand Down
Loading