diff --git a/premise_gwp/__init__.py b/premise_gwp/__init__.py index bc23cc2..d45c530 100644 --- a/premise_gwp/__init__.py +++ b/premise_gwp/__init__.py @@ -18,9 +18,6 @@ def add_premise_gwp(): check_biosphere_database() bw2io_version = check_biosphere_version() - - - # impact methods to create categories_bw2io087 = { ( @@ -76,7 +73,9 @@ def add_premise_gwp(): ), } - categories = categories_bw2io088 if bw2io_version >= (0, 8, 8) else categories_bw2io087 + categories = ( + categories_bw2io088 if bw2io_version >= (0, 8, 8) else categories_bw2io087 + ) for c in categories: print("Adding {}".format(c[0])) diff --git a/premise_gwp/biosphere.py b/premise_gwp/biosphere.py index d51a3ab..0ecb7a6 100644 --- a/premise_gwp/biosphere.py +++ b/premise_gwp/biosphere.py @@ -5,6 +5,7 @@ def check_biosphere_database(): ERROR = "IPCC LCIA methods for ecoinvent biosphere flows only; install base ecoinvent data" assert "biosphere3" in bd.databases, ERROR + def check_biosphere_version() -> tuple: # check for the presence of Beryllium II if "Beryllium II" not in [f["name"] for f in bd.Database("biosphere3")]: