Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nnn911 committed Dec 12, 2023
1 parent cefaa24 commit ab65cdc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/test_modifier.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from pathlib import Path

import numpy as np
import pytest
from ovito.io import import_file
from ovito.modifiers import ShrinkWrapSimulationBoxFunction
from RingFinder import RingFinder
import numpy as np
from pathlib import Path


@pytest.fixture()
Expand Down Expand Up @@ -49,7 +50,10 @@ def test_global_attributes(setup_data):

def test_ring_sizes_tables(setup_data):
data = setup_data
ref = np.array(((5, 13), (6, 10)), dtype=int)
ref = np.zeros((7, 2))
ref[4, 1] = 13
ref[5, 1] = 10
ref[:, 0] = np.arange(7)
assert np.all(data.tables["RingSizes"].xy() == ref)


Expand Down

0 comments on commit ab65cdc

Please sign in to comment.