Skip to content

Commit

Permalink
Black reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Nov 8, 2023
1 parent 0eb96f7 commit 7838c97
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pathways/pathways.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from premise.geomap import Geomap
from scipy import sparse

from . import DATA_DIR
from .lca import (
characterize_inventory,
create_demand_vector,
Expand All @@ -37,7 +38,6 @@
load_classifications,
load_units_conversion,
)
from . import DATA_DIR

# if pypardiso is installed, use it
try:
Expand Down Expand Up @@ -318,7 +318,6 @@ def read_datapackage(self) -> DataPackage:
"""
return DataPackage(self.datapackage)


def get_final_energy_mapping(self):
"""
Read the final energy mapping file, which is an Excel file
Expand All @@ -334,16 +333,17 @@ def create_dict_for_specific_model(row, model):
# Create the dictionary structure for this row for the specific model
dict_structure = {
key: {
'dataset': {
'name': row['dataset name'],
'reference product': row['dataset reference product'],
'unit': row['unit']
"dataset": {
"name": row["dataset name"],
"reference product": row["dataset reference product"],
"unit": row["unit"],
},
'scenario variable': row[model]
"scenario variable": row[model],
}
}
return dict_structure
return None

def create_dict_with_specific_model(dataframe, model):
model_dict = {}
for index, row in dataframe.iterrows():
Expand Down

0 comments on commit 7838c97

Please sign in to comment.