From 2c787f2083ccc883e581b21d34598a60ad9c475b Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Mon, 5 Aug 2024 16:07:23 +0000 Subject: [PATCH] Black reformating --- premise/inventory_imports.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/premise/inventory_imports.py b/premise/inventory_imports.py index 11c94a74..94ea7a07 100644 --- a/premise/inventory_imports.py +++ b/premise/inventory_imports.py @@ -264,9 +264,7 @@ def check_uncertainty_data(data, filename): if exc["uncertainty type"] not in {0, 1}: missing_parameters = [ f - for f in MANDATORY_UNCERTAINTY_FIELDS[ - exc["uncertainty type"] - ] + for f in MANDATORY_UNCERTAINTY_FIELDS[exc["uncertainty type"]] if exc.get(f) is None ] if missing_parameters: @@ -275,7 +273,7 @@ def check_uncertainty_data(data, filename): dataset["name"][:30], exc["name"][:30], exc["uncertainty type"], - missing_parameters + missing_parameters, ] ) @@ -292,7 +290,11 @@ def check_uncertainty_data(data, filename): ] ) - if not exc.get("minimum", 0) <= exc.get("loc", 0) <= exc.get("maximum", 0): + if ( + not exc.get("minimum", 0) + <= exc.get("loc", 0) + <= exc.get("maximum", 0) + ): rows.append( [ dataset["name"][:30],