biosphere consistency check (for bw2_setup())

Issue #29 new
Niko Heeren
created an issue

Right now bw2_setup() checks for

if "biosphere3" in databases:
    print("Biosphere database already present!!! No setup is needed")
    return

Maybe we should include a check_biosphere_db_consistency() function, that will count the number of biosphere flows, do some sort of database hash, or whatnot. Right now it may happen that the biosphere database does not get properly initialized or otherwise destroyed and the user will not necessarily realize that.

If you hint me to a sensible method to check consistency, I could contribute some code... My first guess would be to compare against a hash that is specific to each database version.

Comments (1)

  1. Log in to comment