Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions presamples/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,13 @@ def update_matrices(self, lca=None, matrices=None, advance_indices=True):
elem['indices'][elem['col to label']],
] = sample
else:
# filter elementary flows not in database
mask = np.isin(elem['indices'][elem['row to label']],matrix.indices)
existing = elem['indices'][elem['row to label']][mask]
matrix[
elem['indices'][elem['row to label']],
elem['indices'][elem['row to label']],
] = sample
existing,
existing,
] = sample[mask]

def update_package_indices(self):
"""Move to next index"""
Expand Down