hsosik / ifcb-analysis

custom resolver
Other
30 stars 18 forks source link

TypeError: ufunc 'bitwise_or' output (typecode 'B') could not be coerced to provided output parameter (typecode '?') according to the casting rule ''same_kind'' #4

Closed joefutrelle closed 8 years ago

joefutrelle commented 8 years ago

hysthresh is failing under my test harness in a way it wasn't before. I believe the primary difference about my test environment is that I'm running Xenial instead of Trusty.

joefutrelle commented 8 years ago

If I cast bd to np.bool it works, but the numpy documentation for bitwise_or says:

Only integer and boolean types are handled.

Isn't np.uint8 an integer type?

joefutrelle commented 8 years ago

I think bitwise_or is the wrong operator and that I need logical_or instead.