has2k1 / mizani

A scales package for python
https://mizani.readthedocs.io
BSD 3-Clause "New" or "Revised" License
49 stars 14 forks source link

Fixed raising integer to negative numpy integers #11

Closed jbloom closed 5 years ago

jbloom commented 5 years ago

Previously this error was sometimes raised in breaks if a base was being raised to a numpy array that included negative integers: https://stackoverflow.com/questions/43287311/why-cant-i-raise-to-a-negative-power-in-numpy

Fixed this by making the dtype of the array that is the exponent a float.

has2k1 commented 5 years ago

Thanks. I had caught this and started fixing it just after making the previous release.