LCA-ActivityBrowser / activity-browser

GUI for brightway2
GNU Lesser General Public License v3.0
142 stars 54 forks source link

When to call the .process() method on a database? #134

Closed bsteubing closed 6 years ago

bsteubing commented 6 years ago

To delete an activity completely (so that it is not used during LCA calculations anymore), we need to call database.process(). Issues with this:

So: how to deal with this and when to call this?

haasad commented 6 years ago

Only reason that I see to call database.process early would be to update the activity counter in the databases tab, ie a visual response that the activity was deleted. We could add a check like here to call process on small databases, but ignore it for larger ones where it takes too long. But in general I think we're safe and brightway takes care of this automatically.

bsteubing commented 6 years ago

OK, then the issue I had was still related to a change that I made to a database previous to the current setup as you describe it. Perfect, issue can be closed.