Skip to content

Commit 43aeb62

Browse files
committed
little bug with 's' and the end of units
1 parent 903b8b6 commit 43aeb62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mdagent/tools/base_tools/simulation_tools/setup_and_run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,8 @@ def _parse_cutoff(self, cutoff):
13141314

13151315
# Remove spaces and convert to lowercase for easier parsing
13161316
cutoff = cutoff.replace(" ", "").lower()
1317-
1317+
if cutoff.endswith("s"):
1318+
cutoff = cutoff[:-1]
13181319
# Check for multiplication symbol and split if necessary
13191320
if "*" in cutoff:
13201321
# Split on the '*' and extract the numerical part and the unit part

0 commit comments

Comments
 (0)