Skip to content

Commit

Permalink
little bug with 's' and the end of units
Browse files Browse the repository at this point in the history
  • Loading branch information
Jgmedina95 committed Mar 18, 2024
1 parent 903b8b6 commit 43aeb62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mdagent/tools/base_tools/simulation_tools/setup_and_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,8 @@ def _parse_cutoff(self, cutoff):

# Remove spaces and convert to lowercase for easier parsing
cutoff = cutoff.replace(" ", "").lower()

if cutoff.endswith("s"):
cutoff = cutoff[:-1]
# Check for multiplication symbol and split if necessary
if "*" in cutoff:
# Split on the '*' and extract the numerical part and the unit part
Expand Down

0 comments on commit 43aeb62

Please sign in to comment.