Skip to content
Merged
Changes from 3 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
11 changes: 4 additions & 7 deletions tests/test_brainreg_napari.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ def test_workflow(make_napari_viewer, tmp_path):
assert isinstance(boundaries, napari.layers.Image)


@pytest.mark.xfail(
reason="See https://github.com/brainglobe/cellfinder/issues/443",
raises=AssertionError,
)
def test_orientation_check(
make_napari_viewer, tmp_path, atlas_choice="allen_mouse_50um"
):
Expand Down Expand Up @@ -130,9 +126,10 @@ def test_orientation_check(
ar_projection = viewer.layers["Ref. proj. 1"].data
import numpy as np

assert ar_projection.shape[1] // 2 == 114
assert np.all(ar_projection[:, 114] == 0)
assert not np.all(ar_projection[:, 115] == 0)
midpoint = atlas.shape[2] // 2
assert ar_projection.shape[1] // 2 == midpoint
assert np.all(ar_projection[:, midpoint - 1] == 0)
assert not np.all(ar_projection[:, midpoint] == 0)


def run_and_check_orientation_check(widget, viewer, brain_layer, atlas):
Expand Down
Loading