Skip to content

Commit

Permalink
poundforce/inch^2 processed incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
SamCox822 committed Mar 18, 2024
1 parent e630d90 commit d7f97de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mdagent/tools/base_tools/simulation_tools/setup_and_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,9 @@ def _parse_parameter(self, parameter, default_unit, possible_units):
if "*" in parameter_str:
num_part, unit_part = parameter_str.split("*")
num_value = float(num_part)
elif "poundforce/inch^2" in parameter_str:
num_value = float(parameter_str.replace("poundforce/inch^2", ""))
unit_part = "poundforce/inch^2"
# Check for division symbol and split if necessary
# e.g. "1/ps" or "1/ps^-1"
elif "/" in parameter_str:
Expand Down

0 comments on commit d7f97de

Please sign in to comment.