Skip to content

Commit

Permalink
Raise an error instead of assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
rafmudaf committed Dec 4, 2023
1 parent 4ee8fc3 commit b3ae33c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion floris/simulation/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class BaseModel(BaseClass):

@NUM_EPS.validator
def lock_num_eps(self, attribute: Attribute, value: Any) -> None:
assert value == 0.001 # Locks NUM_EPS to a fixed value. You shouldn't change this!
raise ValueError("NUM_EPS should remain a fixed value. Don't change this!")

@abstractmethod
def prepare_function() -> dict:
Expand Down

0 comments on commit b3ae33c

Please sign in to comment.