Skip to content

Commit

Permalink
Subshares dev
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarojhahn committed Apr 16, 2024
1 parent 0231bf2 commit 0829671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pathways/lca.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ def adjust_matrix_based_on_shares(A_arrays, shares_dict, use_distributions, year
:return:
"""

### The debug file needs to be fixed. Missing total amount + percentages seem wrong

data_array, indices_array, sign_array, _ = A_arrays
index_lookup = {(row["row"], row["col"]): i for i, row in enumerate(indices_array)}
Expand Down Expand Up @@ -316,6 +315,7 @@ def find_index(activity_idx, product_idx):
modified_data_array = np.concatenate(modified_data, axis=0)
modified_indices_array = np.array(modified_indices, dtype=bwp.INDICES_DTYPE)
modified_signs_array = np.array(modified_signs, dtype=bool)
create_debug_dataframe(modified_data_array, modified_indices_array)

return [modified_data_array, modified_indices_array, modified_signs_array]

Expand Down

0 comments on commit 0829671

Please sign in to comment.