bkuczenski / lca-tools

A Python package for doing stuff with LCA data
GNU General Public License v2.0
18 stars 1 forks source link

Separate Flow DB #16

Open bkuczenski opened 7 years ago

bkuczenski commented 7 years ago

FlowDB should stand alone. Workflow should be something like this:

Meanwhile, processes and LCIA do not involve the flow DB. They strictly use the characterizations stored in the flows, which are pointed to by the exchanges, which are owned by the processes. LCIA computation is self-contained within the process.

bkuczenski commented 7 years ago

This is hard because the flowdb is how the foreground knows which flows are elementary. Why is that? because the FlowDB keeps track of the full compartment hierarchy.

implication: compartment manager should be separated from FlowDB. Foreground manager needs to know compartments but not DB. Compartment tree should be an input argument to flowdb, not defined within flowdb.