brightway-lca / brightway2-data

Tools for the management of inventory databases and impact assessment methods. Part of the Brightway LCA framework.
https://docs.brightway.dev/
BSD 3-Clause "New" or "Revised" License
8 stars 21 forks source link

check for `numbers.Integral` in `bw2data.utils.get_activity` #90

Closed BenPortner closed 2 years ago

BenPortner commented 2 years ago

Check for numbers.Integral in bw2data.utils.get_activity instead of int to correctly handle other integer types, e.g. numpy.int32.

BenPortner commented 2 years ago

@cmutel just added the test. Seems all fine to me.