diff --git a/imops/__version__.py b/imops/__version__.py index 73f83151..37e9d6dd 100644 --- a/imops/__version__.py +++ b/imops/__version__.py @@ -1 +1 @@ -__version__ = '0.8.5' +__version__ = '0.8.6' diff --git a/tests/test_interp2d.py b/tests/test_interp2d.py index 0d2c1276..f2b032a1 100644 --- a/tests/test_interp2d.py +++ b/tests/test_interp2d.py @@ -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