Skip to content

Commit d76a49c

Browse files
fix energy_range setter (#252)
1 parent f9b8d71 commit d76a49c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

skyllh/core/signal_generation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ def energy_range(self, r):
6262
'The second element of the energy_range '
6363
'sequence must be castable to type float!')
6464
)
65+
if r[0] >= r[1]:
66+
raise ValueError(
67+
'The first element of the energy_range sequence must be '
68+
'strictly smaller than the second element!')
6569
self._energy_range = r
6670

6771
@abc.abstractmethod

0 commit comments

Comments
 (0)