bw2calc.utils
#
Module Contents#
Functions#
|
Extract the core set of fields needed for uncertainty analysis from a parameter array |
|
Get valid Numpy random seed value |
|
Load the numpy arrays from list of objects |
Load a calculation package created by |
|
|
Generate MD5 hash for file at filepath |
|
Transform functional units for effective logging. |
Attributes#
- bw2calc.utils.extract_uncertainty_fields(array)[source]#
Extract the core set of fields needed for uncertainty analysis from a parameter array
- bw2calc.utils.load_arrays(objs)[source]#
Load the numpy arrays from list of objects
objs
.- Currently accepts
str
filepaths,BytesIO
, numpy.ndarray
arrays. Creates copies of objects
- Currently accepts
- bw2calc.utils.load_calculation_package(fp)[source]#
Load a calculation package created by
save_calculation_package
.NumPy arrays are saved to a temporary directory, and file paths are adjusted.
fp
is the absolute file path of a calculation package file.Returns a dictionary suitable for passing to an LCA object, e.g.
LCA(**load_calculation_package(fp))
.