bw2calc.fast_scores#
Classes#
Use chunking and pre-calculate as much as possible to optimize speed for multiple LCA |
Module Contents#
- class bw2calc.fast_scores.FastScoresOnlyMultiLCA(*args, chunk_size: int = 50, **kwargs)[source]#
Bases:
bw2calc.multi_lca.MultiLCA,bw2calc.fast_supply_arrays.FastSupplyArraysMixinUse chunking and pre-calculate as much as possible to optimize speed for multiple LCA calculations.
If using pardiso via pypardiso:
Feed multiple demands at once as a tensor into the solver function
Skip some identity checks on the technosphere matrix
- build_precalculated() None[source]#
Multiply the characterization, and normalization and weighting matrices if present, by the biosphere matrix. When done outside the calculation loop, this only needs to be done once.