fixup! [isosurface] fix sampling
This commit is contained in:
parent
e345d1dcf8
commit
8895b06f08
1 changed files with 8 additions and 0 deletions
|
|
@ -240,6 +240,14 @@ def test_get_slice_uses_shifted_grid_bounds() -> None:
|
|||
|
||||
|
||||
|
||||
def test_sampled_preview_exyz_tracks_nonuniform_centers() -> None:
|
||||
grid = Grid([[0, 1, 3, 6, 10], [0, 1, 2], [0, 1, 2]], shifts=[[0, 0, 0]])
|
||||
|
||||
sampled_exyz = grid._sampled_exyz(0, 2)
|
||||
|
||||
assert_allclose(sampled_exyz[0], [-1.5, 2.5, 6.5])
|
||||
|
||||
|
||||
def test_visualize_isosurface_sampling_uses_preview_lattice(monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
matplotlib = pytest.importorskip('matplotlib')
|
||||
matplotlib.use('Agg')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue