Skip to content

3D scatter test #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
removed brain_data casting to an array
  • Loading branch information
ruaridhg committed Jun 2, 2023
commit eef068d18f08af575d3bf3b4348c75b46be791d2
3 changes: 1 addition & 2 deletions src/napari_matplotlib/tests/test_histogram.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from copy import deepcopy

import pytest
from numpy import array

from napari_matplotlib import HistogramWidget
from napari_matplotlib.tests.helpers import (
Expand All @@ -25,7 +24,7 @@ def test_histogram_3D(make_napari_viewer, brain_data):
viewer = make_napari_viewer()
viewer.add_image(brain_data[0], **brain_data[1])
axis = viewer.dims.last_used
slice_no = array(brain_data[0]).shape[0] - 1
slice_no = brain_data[0].shape[0] - 1
viewer.dims.set_current_step(axis, slice_no)
fig = HistogramWidget(viewer).figure
# Need to return a copy, as original figure is too eagerley garbage
Expand Down
3 changes: 1 addition & 2 deletions src/napari_matplotlib/tests/test_slice.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from copy import deepcopy

import pytest
from numpy import array

from napari_matplotlib import SliceWidget

Expand All @@ -11,7 +10,7 @@ def test_slice_3D(make_napari_viewer, brain_data):
viewer = make_napari_viewer()
viewer.add_image(brain_data[0], **brain_data[1])
axis = viewer.dims.last_used
slice_no = array(brain_data[0]).shape[0] - 1
slice_no = brain_data[0].shape[0] - 1
viewer.dims.set_current_step(axis, slice_no)
fig = SliceWidget(viewer).figure
# Need to return a copy, as original figure is too eagerley garbage
Expand Down