From f5208b5ab82081a6165fd52bf0d378e8d8a1e34f Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Sun, 15 Oct 2023 15:44:35 +0000 Subject: [PATCH] Black reformating --- unfold/brightway25_export.py | 10 ++++++---- unfold/unfold.py | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/unfold/brightway25_export.py b/unfold/brightway25_export.py index c751ee6..336089e 100644 --- a/unfold/brightway25_export.py +++ b/unfold/brightway25_export.py @@ -1,13 +1,16 @@ -from bw2data import databases, Database -from bw2io.importers.base_lci import LCIImporter -from copy import copy import itertools +from copy import copy + +from bw2data import Database, databases +from bw2io.importers.base_lci import LCIImporter + def write_brightway_database(data, name): # Restore parameters to Brightway2 format # which allows for uncertainty and comments BW25UnfoldExporter(name, data).write_database() + class BW25UnfoldExporter(LCIImporter): """ Inherits from `LCIImporter` to @@ -27,7 +30,6 @@ def __init__(self, db_name, data): # to allow existing databases # to be overwritten def write_database(self): - def no_exchange_generator(data): for ds in data: cp = copy(ds) diff --git a/unfold/unfold.py b/unfold/unfold.py index 1c0b576..4f196ef 100644 --- a/unfold/unfold.py +++ b/unfold/unfold.py @@ -41,6 +41,7 @@ try: import bw_processing + from .brightway25_export import write_brightway_database except ImportError: