Skip to content

Commit

Permalink
Replace numpy.concat() -> numpy.concatenate()
Browse files Browse the repository at this point in the history
numpy.concat() is an alias to numpy.concatenate(), available in
numpy >= 2.0. To support older numpys, we should use concatenate()
instead.
  • Loading branch information
soininen committed Nov 21, 2024
1 parent 1995757 commit b5f78bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinedb_api/parameter_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b5f78bd

Please sign in to comment.