brightway-lca / bw_timex

Time-explicit Life Cycle Assessment
https://docs.brightway.dev/projects/bw-timex
BSD 3-Clause "New" or "Revised" License
28 stars 5 forks source link

Prevent redundant calculations in dynamic_biosphere_builder #67

Open jakobsarthur opened 2 months ago

jakobsarthur commented 2 months ago

Right now, the lci for each 'exploded' or timeline activity is calculated separately. However, this includes many duplicate calculations. Can create a list or dict which contains all lci's that have been calculated, and before calculating a new lci for a given demand, check if it has already been calculated.