@@ -305,10 +305,10 @@ cdef int check_array_constraint(np.ndarray val, object name, constraint_type con
305
305
elif cons == CONS_BOUNDED_0_1 :
306
306
if not np .all (np .greater_equal (val , 0 )) or \
307
307
not np .all (np .less_equal (val , 1 )):
308
- raise ValueError ("{0} < 0 , {0} > 1 or {0} contains NaNs" .format (name ))
308
+ raise ValueError ("{0} < 0, {0} > 1 or {0} contains NaNs" .format (name ))
309
309
elif cons == CONS_BOUNDED_GT_0_1 :
310
310
if not np .all (np .greater (val , 0 )) or not np .all (np .less_equal (val , 1 )):
311
- raise ValueError ("{0} <= 0 , {0} > 1 or {0} contains NaNs" .format (name ))
311
+ raise ValueError ("{0} <= 0, {0} > 1 or {0} contains NaNs" .format (name ))
312
312
elif cons == CONS_GT_1 :
313
313
if not np .all (np .greater (val , 1 )):
314
314
raise ValueError ("{0} <= 1 or {0} contains NaNs" .format (name ))
@@ -336,10 +336,10 @@ cdef int check_constraint(double val, object name, constraint_type cons) except
336
336
raise ValueError (name + " <= 0" )
337
337
elif cons == CONS_BOUNDED_0_1 :
338
338
if not (val >= 0 ) or not (val <= 1 ):
339
- raise ValueError ("{0} < 0 , {0} > 1 or {0} is NaN" .format (name ))
339
+ raise ValueError ("{0} < 0, {0} > 1 or {0} is NaN" .format (name ))
340
340
elif cons == CONS_BOUNDED_GT_0_1 :
341
341
if not val > 0 or not val <= 1 :
342
- raise ValueError ("{0} <= 0 , {0} > 1 or {0} contains NaNs" .format (name ))
342
+ raise ValueError ("{0} <= 0, {0} > 1 or {0} contains NaNs" .format (name ))
343
343
elif cons == CONS_GT_1 :
344
344
if not (val > 1 ):
345
345
raise ValueError ("{0} <= 1 or {0} is NaN" .format (name ))
0 commit comments