Skip to content

Commit

Permalink
test_sbx: fix assert
Browse files Browse the repository at this point in the history
  • Loading branch information
pgunn committed Apr 3, 2024
1 parent fe3f84f commit b312f10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions caiman/tests/test_sbx.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def test_sbx_to_tif():
sbx_utils.sbx_to_tif(file_3d, fileout=tif_file, plane=0)
plane_data_from_tif = cm.load(tif_file)
npt.assert_array_almost_equal(data_3d_from_sbx[:, :, :, 0], plane_data_from_tif)
except:
assert False

def test_sbx_chain_to_tif():
try:
Expand Down Expand Up @@ -165,3 +167,5 @@ def test_sbx_chain_to_tif():
data_3d_2[subinds_to_ix(subinds_2, data_3d_2.shape)]], axis=0)
npt.assert_array_almost_equal(data_chain_tif, data_chain_gt,
err_msg='Tif from chain with non-matching subindices does not match expected')
except:
assert False

0 comments on commit b312f10

Please sign in to comment.