Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Jul 29, 2023
2 parents fd0716e + 27fceb2 commit 5e3cec9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions premise/electricity.py
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,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 @@ -1481,7 +1482,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 @@ -811,12 +811,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 5e3cec9

Please sign in to comment.