Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
# Conflicts:
#	pathways/lca.py
#	pathways/pathways.py
  • Loading branch information
romainsacchi authored and romainsacchi committed Apr 11, 2024
2 parents 7c5d05c + 1e97b7d commit 447deea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions pathways/lca.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""


import csv
import logging
import uuid
Expand All @@ -16,7 +15,7 @@
import pyprind
from bw2calc.monte_carlo import MonteCarloLCA
from bw_processing import Datapackage
from numpy import ndarray, dtype
from numpy import dtype, ndarray
from scipy import sparse
from scipy.sparse import csr_matrix

Expand Down
9 changes: 6 additions & 3 deletions pathways/pathways.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

from .data_validation import validate_datapackage
from .filesystem_constants import DATA_DIR, DIR_CACHED_DB
from .lca import get_lca_matrices, _calculate_year
from .lca import _calculate_year, get_lca_matrices
from .lcia import get_lcia_method_names
from .utils import (
clean_cache_directory,
Expand All @@ -31,7 +31,8 @@
load_classifications,
load_numpy_array_from_disk,
load_units_conversion,
resize_scenario_data, )
resize_scenario_data,
)

# remove warnings
warnings.filterwarnings("ignore")
Expand Down Expand Up @@ -149,7 +150,9 @@ def create_dict_for_specific_model(row: dict, model: str) -> dict:
return dict_structure
return None

def create_dict_with_specific_model(dataframe: pandas.DataFrame, model: str) -> dict:
def create_dict_with_specific_model(
dataframe: pandas.DataFrame, model: str
) -> dict:
"""
Create a dictionary for a specific model from the dataframe.
:param dataframe: pandas.DataFrame
Expand Down

0 comments on commit 447deea

Please sign in to comment.