rwl / PYPOWER

Port of MATPOWER to Python
http://rwl.github.io/PYPOWER/api/
Other
329 stars 110 forks source link

Using truth value of an array with more than one element in t_is #48

Open rwl opened 6 years ago

rwl commented 6 years ago

https://github.com/rwl/PYPOWER/blob/2b99f9f0db56e579a67cb449da9795eee8cc6288/pypower/t/t_is.py#L48

Result in the error:

The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()