has2k1 / mizani

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

Explicitly cast log_breaks as float #3

Closed vals closed 7 years ago

vals commented 7 years ago

There seem to recently have been a change to Numpy to be more strict about e.g

10 ** np.arange(-4, 4)

This code above produces a ValueError in Numpy 1.13.0. Explicitly setting the dtype of np.arange solves the issue.

This prevents ValueError: Integers to negative integer powers are not allowed.

has2k1 commented 7 years ago

Thank you @vals.