Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarojhahn committed May 19, 2024
1 parent 94d8a6e commit 64897d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pathways/lca.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import bw_processing as bwp
import numpy as np
import pyprind
from bw2calc.utils import get_datapackage
from bw2calc.monte_carlo import MonteCarloLCA
from bw_processing import Datapackage
from numpy import dtype, ndarray
Expand Down Expand Up @@ -263,6 +264,7 @@ def process_region(data: Tuple) -> dict[str, ndarray[Any, dtype[Any]] | list[int
variables_demand = {}
d = []
impacts_by_method = {method: [] for method in methods}
param_keys = set()

for v, variable in enumerate(variables):
idx, dataset = vars_idx[variable]["idx"], vars_idx[variable]["dataset"]
Expand Down Expand Up @@ -315,7 +317,6 @@ def process_region(data: Tuple) -> dict[str, ndarray[Any, dtype[Any]] | list[int
# next(lca) is a generator that yields the inventory matrix
temp_results = []
params = {}
param_keys = set()
for _ in zip(range(use_distributions), lca):
matrix_result = (characterization_matrix @ lca.inventory).toarray()
temp_results.append(matrix_result)
Expand Down

0 comments on commit 64897d6

Please sign in to comment.