Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Upper cased the interaction_loops and encounter_check_loops argument …
Browse files Browse the repository at this point in the history
…values so that the user doesn't have to
  • Loading branch information
daminton committed Mar 8, 2023
1 parent 0489044 commit f1eab7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/swiftest/swiftest/simulation_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -1231,6 +1231,7 @@ def set_feature(self,

if interaction_loops is not None:
valid_vals = ["TRIANGULAR", "FLAT"]
interaction_loops = interaction_loops.upper()
if interaction_loops not in valid_vals:
msg = f"{interaction_loops} is not a valid option for interaction loops."
msg += f"\nMust be one of {valid_vals}"
Expand All @@ -1243,6 +1244,7 @@ def set_feature(self,

if encounter_check_loops is not None:
valid_vals = ["TRIANGULAR", "SORTSWEEP"]
encounter_check_loops = encounter_check_loops.upper()
if encounter_check_loops not in valid_vals:
msg = f"{encounter_check_loops} is not a valid option for interaction loops."
msg += f"\nMust be one of {valid_vals}"
Expand Down

0 comments on commit f1eab7c

Please sign in to comment.