REGISTER NOW: DdS Autumn School! 🇨🇭 Grosshöchstetten (Switzerland) 🗓️ 6.-11. October 2024

bw2calc.utils#

Module Contents#

Functions#

consistent_global_index(packages[, matrix])

get_datapackage(obj)

get_seed([seed])

Get valid Numpy random seed value

utc_now(→ datetime.datetime)

Get current datetime compatible with Py 3.8 to 3.12

wrap_functional_unit(dct)

Transform functional units for effective logging.

bw2calc.utils.consistent_global_index(packages, matrix='characterization_matrix')[source]#
bw2calc.utils.get_datapackage(obj)[source]#
bw2calc.utils.get_seed(seed=None)[source]#

Get valid Numpy random seed value

bw2calc.utils.utc_now() datetime.datetime[source]#

Get current datetime compatible with Py 3.8 to 3.12

bw2calc.utils.wrap_functional_unit(dct)[source]#

Transform functional units for effective logging. Turns Activity objects into their keys.