Skip to content

Commit 21baefc

Browse files
authored
Merge pull request #1471 from mrvisscher/fix-paramter-mc
Fix paramter mc
2 parents 2c151eb + 205ce68 commit 21baefc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

activity_browser/bwutils/montecarlo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def calculate(self, iterations=10, seed: int = None, **kwargs):
195195
sort_idx = np.searchsorted(uniq, subset[self.param_cols])
196196
# Finally, insert the sorted subset amounts into the tech_vector
197197
# at the correct indexes.
198-
tech_vector[idx] = subset[sort_idx]["amount"]
198+
tech_vector[idx[sort_idx]] = subset["amount"]
199199
# Repeat the above, but for the biosphere array.
200200
subset = param_exchanges[param_exchanges["type"] == 2]
201201
idx = np.argwhere(

0 commit comments

Comments
 (0)