Skip to content

User Stories

Chris Mutel edited this page Feb 12, 2018 · 1 revision

Creating presamples

Creating presamples from external input data

Data should be processed to be in the correct form, and then fed into create_presamples_package.

Status: Done

Creating presamples from some exchanges and a model

Status: Done. See examples in kronecker_delta and fixed_sum.

Creating presamples from an entire database

Status: Not started. Should be a model in bw_presamples (for both static and stochastic presamples).

Creating presamples from a set of bw2data parameters (for input into other parameterized models)

Input is a dictionary of parameters; output is a presamples package with only parameter presamples. Should also be able to use existing presamples as fixed (global_params in ParameterSet).

Status: Not stated, but not difficult. Needs a wrapper around ParameterSet.

Note: Have to think about broadcasting - probably need some helper functions to make sure that intermediate and final results are always returned in the same shape. This means that each parameter formula must return a scalar, which seems like a reasonable restriction.

Creating presamples from a model and a set of parameter presamples

Status: Not started. Waiting on design decisions for presample loading from bw2data and automatic name mangling.

Creating presamples from a set of bw2data parameters (realized as new exchange values)

Status: Not started. Waiting on design decisions for presample loading from bw2data and automatic name mangling.

Import presamples from "generic" presamples format

Our presamples format is machine- and project-specific. In a generic format, we would store metadata about matrix parameters that would give the input and output keys, in addition to mapping integer ids.

Status: Not started