diff --git a/premise/fuels.py b/premise/fuels.py index 3b10e3bb..ee989d03 100644 --- a/premise/fuels.py +++ b/premise/fuels.py @@ -2251,11 +2251,14 @@ def generate_regional_fuel_market( if np.isclose( self.iam_fuel_markets.sel(region=region, variables=prod_vars) .interp(year=self.year) - .sum(dim=["variables"]) - , 0, atol=1e-3 + .sum(dim=["variables"]), + 0, + atol=1e-3, ): if "hydrogen" in dataset["name"].lower(): - prod_vars = ["hydrogen, from natural gas",] + prod_vars = [ + "hydrogen, from natural gas", + ] sum_share = 0 for prod_var in prod_vars: diff --git a/premise/transformation.py b/premise/transformation.py index 4277a5a7..6d82e8fa 100644 --- a/premise/transformation.py +++ b/premise/transformation.py @@ -492,9 +492,7 @@ def select_multiple_suppliers( suppliers = list( ws.get_many( subset or self.database, - ws.either( - *[ws.equals("name", sup) for sup in possible_names] - ), + ws.either(*[ws.equals("name", sup) for sup in possible_names]), ( ws.either( *[