Skip to content

Commit

Permalink
Black reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Jul 27, 2023
1 parent 5a2d4c5 commit 8ed2e31
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
5 changes: 4 additions & 1 deletion premise/ecoinvent_modification.py
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,10 @@ def update_all(self) -> None:
self.update_emissions()

def write_superstructure_db_to_brightway(
self, name: str = f"super_db_{date.today()}", filepath: str = None, format: str = "excel"
self,
name: str = f"super_db_{date.today()}",
filepath: str = None,
format: str = "excel",
) -> None:
"""
Register a super-structure database,
Expand Down
4 changes: 2 additions & 2 deletions premise/electricity.py
Original file line number Diff line number Diff line change
Expand Up @@ -1435,7 +1435,8 @@ def create_biomass_markets(self) -> None:
}

available_biomass_vars = [
v for v in list(biomass_map.keys())
v
for v in list(biomass_map.keys())
if v in self.iam_data.production_volumes.variables.values
]

Expand All @@ -1453,7 +1454,6 @@ def create_biomass_markets(self) -> None:
)

if biomass_type in available_biomass_vars:

share = np.clip(
(
self.iam_data.production_volumes.sel(
Expand Down
7 changes: 1 addition & 6 deletions premise/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,12 +827,7 @@ def generate_scenario_difference_file(


def generate_superstructure_db(
origin_db,
scenarios,
db_name,
filepath,
version,
format="excel"
origin_db, scenarios, db_name, filepath, version, format="excel"
) -> List[dict]:
"""
Build a superstructure database from a list of databases
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def package_files(directory):
"requests",
"bottleneck",
"constructive_geometries>=0.8.2",
"pyarrow"
"pyarrow",
],
url="https://github.com/polca/premise",
description="Coupling IAM output to ecoinvent LCA database ecoinvent for prospective LCA",
Expand Down

0 comments on commit 8ed2e31

Please sign in to comment.