From b5f78bda93d4268ccc46d8ded4e826f1ad42b134 Mon Sep 17 00:00:00 2001 From: Antti Soininen Date: Thu, 21 Nov 2024 10:07:06 +0200 Subject: [PATCH] Replace numpy.concat() -> numpy.concatenate() numpy.concat() is an alias to numpy.concatenate(), available in numpy >= 2.0. To support older numpys, we should use concatenate() instead. --- spinedb_api/parameter_value.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spinedb_api/parameter_value.py b/spinedb_api/parameter_value.py index 3ef031d7..1d768672 100644 --- a/spinedb_api/parameter_value.py +++ b/spinedb_api/parameter_value.py @@ -1062,7 +1062,7 @@ def merge(self, other): # Avoid sorting when indices are arbitrary strings existing = set(self.indexes) additional = [x for x in other.indexes if x not in existing] - new_indexes = np.concat((additional, self.indexes)) + new_indexes = np.concatenate((additional, self.indexes)) def _merge(value, other): return other if value is None else merge_parsed(value, other)