Skip to content

Commit

Permalink
(fix): use item
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan-gold committed Oct 15, 2024
1 parent 9aaeac2 commit b771af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_muon_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def test_multi_group(self, filepath_hdf5):

for sample, value in (("sample9_groupA", 1.719391), ("sample17_groupB", -2.057848)):
si = np.where(mdata.obs.index == sample)[0]
assert mdata.obsm["X_mofa"][si, 0] == pytest.approx(value, 1e-4)
assert mdata.obsm["X_mofa"][si, 0].item() == pytest.approx(value)


if __name__ == "__main__":
Expand Down

0 comments on commit b771af7

Please sign in to comment.