bw2calc.mc_vector#

Module Contents#

Classes#

ParameterVectorLCA

A Monte Carlo class where all uncertain parameters are stored in a single large array.

class bw2calc.mc_vector.ParameterVectorLCA(demand, method=None, iter_solver=cgs, seed=None, *args, **kwargs)[source]#

Bases: bw2calc.monte_carlo.IterativeMonteCarlo

Inheritance diagram of bw2calc.mc_vector.ParameterVectorLCA

A Monte Carlo class where all uncertain parameters are stored in a single large array.

Useful for sensitivity analysis and easy manipulation.

Create a new LCA calculation.

Parameters
  • demand (*) – The demand or functional unit. Needs to be a dictionary to indicate amounts, e.g. {("my database", "my process"): 2.5}.

  • method (*) – LCIA Method tuple, e.g. ("My", "great", "LCIA", "method"). Can be omitted if only interested in calculating the life cycle inventory.

Returns

A new LCA object

property bio_sample[source]#
property cf_sample[source]#
property tech_sample[source]#
property weighting_sample[source]#
load_data()[source]#
rebuild_all(vector=None)[source]#

Rebuild the LCI/LCIA matrices from a new Monte Carlo sample or provided vector.