From 7c63102099d771a58d8c9d344a82aa209b42bdbd Mon Sep 17 00:00:00 2001 From: Oliver Backhouse Date: Tue, 17 Sep 2024 23:03:55 +0100 Subject: [PATCH] Fix wrong inplace keyword arg --- ebcc/backend/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ebcc/backend/__init__.py b/ebcc/backend/__init__.py index 782b779f..e68692e8 100644 --- a/ebcc/backend/__init__.py +++ b/ebcc/backend/__init__.py @@ -74,9 +74,9 @@ def _put( elif BACKEND == "jax": if isinstance(indices, tuple): indices_flat = np.ravel_multi_index(indices, array.shape) - array = np.put(array, indices_flat, values, inplace=True) # type: ignore + array = np.put(array, indices_flat, values, inplace=False) # type: ignore else: - array = np.put(array, indices, values, inplace=True) # type: ignore + array = np.put(array, indices, values, inplace=False) # type: ignore return array elif BACKEND == "tensorflow": if isinstance(indices, (tuple, list)):