Skip to content

Commit

Permalink
adapt setup_lj to use check_dimensionality
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-blanco committed Apr 1, 2024
1 parent 8e49676 commit 09c9257
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyMBE.py
Original file line number Diff line number Diff line change
Expand Up @@ -1252,10 +1252,10 @@ def define_particle(self, name, q=0, acidity='inert', pka=None, sigma=None, epsi
offset=self.units.Quantity(0, "reduced_length")

# Define LJ parameters
parameters_with_dimensionality={"sigma":{"value": sigma, "dimensionality": "length"},
"cutoff":{"value": cutoff, "dimensionality": "length"},
"offset":{"value": offset, "dimensionality": "length"},
"epsilon":{"value": epsilon, "dimensionality": "energy"},}
parameters_with_dimensionality={"sigma":{"value": sigma, "dimensionality": "[length]"},
"cutoff":{"value": cutoff, "dimensionality": "[length]"},
"offset":{"value": offset, "dimensionality": "[length]"},
"epsilon":{"value": epsilon, "dimensionality": "[energy]"},}

for parameter_key in parameters_with_dimensionality.keys():
if parameters_with_dimensionality[parameter_key]["value"] is not None:
Expand Down

0 comments on commit 09c9257

Please sign in to comment.