Simplified out of bound check in mctp2tc

master
Per A Brodtkorb 8 years ago
parent 59df510f0a
commit 83453ca0d2

@ -1337,7 +1337,7 @@ def mctp2tc(f_Mm, utc, param, f_mM=None):
raise IndexError('index for mean-level out of range, stop')
def _check_discretization(param, ntc):
if param[2] - 1 < ntc or ntc < 2:
if not (1 < ntc < param[2]):
raise ValueError('the reference level out of range, stop')
def _normalize_rows(arr):

Loading…
Cancel
Save