Skip to content

Commit

Permalink
Bug Fix: pass the SoB_only_matrix.shape when creating SoB_matrix_spar…
Browse files Browse the repository at this point in the history
…se in the 4D KDE w/o set gamma case
  • Loading branch information
sathanas31 committed Feb 7, 2025
1 parent 25437c0 commit cab4e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flarestack/core/llh.py
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ def joint_SoB(dataset, gamma):

SoB_matrix_sparse = sparse.csr_matrix(
(data, SoB_only_matrix.indices, SoB_only_matrix.indptr),
shape=SoB_only_matrix,
shape=SoB_only_matrix.shape,
)

SoB_sum = SoB_matrix_sparse.sum(axis=0)
Expand Down

0 comments on commit cab4e77

Please sign in to comment.