Closed bsteubing closed 6 years ago
bw.LCA
-object calls clean_databases
: codedatabase.process
is therefore called on any "dirty" database: codedatabase.process
is always called before anything is caclulatedOnly 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.
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.
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?