-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 0.5.0 with numpy fails on Decimal values #40
Comments
We're going to have to wrap a few of the math functions if we want to support Decimals in numpy-mode I think. Few numpy functions understand them, even when used as straight-up scalars, including some we need: sin, cos, radians, degrees, max and min. Interestingly sqrt is fine with them. I'm not sure if numpy would consider this a bug. |
I'm not sure about numpy strategy about Decimal support in future. I see two options:
|
the situation is also following: if you call numpy.max with single float argument, it works |
Just as a reminder, this is still unsupported by (our required version of) |
UTM version:
Numpy version:
(tested on some other numpy versions below 1.16.4)
Code:
fails with such traceback:
The text was updated successfully, but these errors were encountered: