Skip to content

Commit

Permalink
Update mne_connectivity/viz/tests/test_3d.py
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel McCloy <dan@mccloy.info>
  • Loading branch information
adam2392 and drammock committed Jul 15, 2023
1 parent e4e66d6 commit 12c600c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mne_connectivity/viz/tests/test_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def test_plot_sensors_connectivity(renderer):
cmap_from_vtk = np.array(

Check warning on line 37 in mne_connectivity/viz/tests/test_3d.py

View check run for this annotation

Codecov / codecov/patch

mne_connectivity/viz/tests/test_3d.py#L36-L37

Added lines #L36 - L37 were not covered by tests
fig.plotter.scalar_bar.GetLookupTable().GetTable()
)
cmap_from_vtk = cmap_from_vtk[:, :3] / cmap_from_vtk[:, [-1]]
# discard alpha channel and convert uint8 -> norm
cmap_from_vtk = cmap_from_vtk[:, :3] / 255
cmap_from_vtk = cmap_from_vtk[::-1] # for some reason order is flipped
assert_almost_equal(cmap_from_mpl, cmap_from_vtk, decimal=2)

Check warning on line 43 in mne_connectivity/viz/tests/test_3d.py

View check run for this annotation

Codecov / codecov/patch

mne_connectivity/viz/tests/test_3d.py#L41-L43

Added lines #L41 - L43 were not covered by tests
# check title
Expand Down

0 comments on commit 12c600c

Please sign in to comment.