bw2calc.utils#
Attributes#
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. |
Module Contents#
- 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
strfilepaths,BytesIO, numpy.ndarrayarrays. 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.
fpis 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)).