PascalLesage / presamples

Package to write, load, manage and verify numerical arrays, called presamples.
BSD 3-Clause "New" or "Revised" License
14 stars 11 forks source link

Easier link between PBM and LCA #70

Open PascalLesage opened 4 years ago

PascalLesage commented 4 years ago

A ParameterizedBrightwayModel instance is useful for loading all parameter data for a given group, and updating this data using presample packages.

What is is not good at is directly passing the updated data to an LCA instance. One would need to load the data, calculate new matrix presamples, save the presamples, and then use the presamples in a new LCA instance. The "saving the presamples package to disk" step should be avoidable.

It would be great if PBM objects (or its matrix data) could be passed directly to LCA instead.

PascalLesage commented 4 years ago

@cmutel perhaps this is already possible in bw2.5. Is there documentation on the structure of data_objs that can be passed to LCA? This indicates a dict is accepted, perhaps the data in the PBM can be formatted to an acceptable dict.