You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@apdavison, sure I'll look into this right away, I think I see what's happening here: numpy casting rules aren't really well suited for integer types in quantities. I'll try to put a PR together.
Activity
apdavison commentedon Feb 16, 2023
Thanks for reporting this. We'll look into it urgently.
As a workaround, I note that explicitly giving
headinga float dtype avoids the problem, e.g.apdavison commentedon Feb 16, 2023
@bjodah could you look at this?
bjodah commentedon Feb 17, 2023
@apdavison, sure I'll look into this right away, I think I see what's happening here: numpy casting rules aren't really well suited for integer types in
quantities. I'll try to put a PR together.Fix python-quantitiesgh-215, dtype conversion in rescale
add more unit tests, including a regression test for gh-215
Merge pull request #216 from bjodah/fix-rescale-integer-arg
apdavison commentedon Feb 17, 2023
Many thanks for the quick response @bjodah !
@axelande I've made a bug-fix release. Updating to 0.14.1 should fix the problem.