Skip to content

Commit

Permalink
add test, version upd
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeybelkov committed Feb 1, 2024
1 parent f4678f8 commit 6896bae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion imops/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.8.5'
__version__ = '0.8.6'
9 changes: 9 additions & 0 deletions tests/test_interp2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ def test_no_values(example):
Linear2DInterpolator(x_points)(int_points)


def test_no_changes_in_values(example):
x_points, int_points = example
first_values = np.ones((x_points.shape[0], ), dtype=float)
second_values = 2.0 * np.ones((x_points.shape[0], ), dtype=float)
interpolator = Linear2DInterpolator(x_points, first_values)
interpolator(int_points, second_values)
assert np.all(interpolator.values == first_values), f'Failed with changes in self.values after __call__'


def test_bad_values_dtype(example):
x_points, int_points = example

Expand Down

0 comments on commit 6896bae

Please sign in to comment.