From 7982036c68d0490ea546970fdf3eaffbfcdc75dd Mon Sep 17 00:00:00 2001 From: Michael Weinold <23102087+michaelweinold@users.noreply.github.com> Date: Thu, 22 Aug 2024 15:46:29 +0200 Subject: [PATCH 1/2] initial commit --- bw2io/data/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bw2io/data/__init__.py b/bw2io/data/__init__.py index 80b81429..9c6bb5ba 100644 --- a/bw2io/data/__init__.py +++ b/bw2io/data/__init__.py @@ -444,12 +444,15 @@ def add_example_database(overwrite=True, searchable=True): strip_biosphere_exc_locations, ) + method = + if "Mobility example" in databases: if not overwrite: print("Example already imported, use `overwrite=True` to delete") return else: del databases["Mobility example"] + parameters.new_project_parameters(data=[]) if ("IPCC", "simple") in methods: del methods[("IPCC", "simple")] From 96163f298b6a6ea0213ce07efd6eb239cfd2289d Mon Sep 17 00:00:00 2001 From: Michael Weinold <23102087+michaelweinold@users.noreply.github.com> Date: Thu, 22 Aug 2024 15:47:43 +0200 Subject: [PATCH 2/2] removed snippet --- bw2io/data/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/bw2io/data/__init__.py b/bw2io/data/__init__.py index 9c6bb5ba..63e33ec4 100644 --- a/bw2io/data/__init__.py +++ b/bw2io/data/__init__.py @@ -444,8 +444,6 @@ def add_example_database(overwrite=True, searchable=True): strip_biosphere_exc_locations, ) - method = - if "Mobility example" in databases: if not overwrite: print("Example already imported, use `overwrite=True` to delete")