Skip to content

Commit

Permalink
Merge branch 'main' into prism_cython
Browse files Browse the repository at this point in the history
  • Loading branch information
jcapriot authored Oct 30, 2023
2 parents 57299d8 + 5408065 commit 3cf25a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion geoana/em/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ def epsilon(self, value):
raise TypeError(f"epsilon must be a number, got {type(value)}")

if value < 0.0:
raise ValueError("epsilon must be greater than 0")
raise ValueError(
f"Invalid epsilon '{value}': "
"epsilon must be greater or equal than zero."
)

self._epsilon = value

Expand Down

0 comments on commit 3cf25a7

Please sign in to comment.