Skip to content

Commit 795578f

Browse files
committed
concat -> concatenate
1 parent f580e24 commit 795578f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

nt2/containers/particles.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ def _read_column(
699699
) -> npt.NDArray[Union[np.float64, np.int64, np.float32, np.int32]]:
700700
read_colname = None
701701
if colname == "id":
702-
idx = np.concat(
702+
idx = np.concatenate(
703703
[
704704
self.reader.ReadArrayAtTimestep(
705705
self.path, "particles", f"pIDX_{sp}", step
@@ -715,7 +715,7 @@ def _read_column(
715715
len(self.sp_with_idx) > 0
716716
and f"pRNK_{self.sp_with_idx[0]}" in self.quantities
717717
):
718-
rnk = np.concat(
718+
rnk = np.concatenate(
719719
[
720720
self.reader.ReadArrayAtTimestep(
721721
self.path, "particles", f"pRNK_{sp}", step
@@ -745,7 +745,7 @@ def _read_column(
745745
elif colname == "w":
746746
read_colname = "pW"
747747
elif colname == "sp":
748-
return np.concat(
748+
return np.concatenate(
749749
[
750750
np.zeros(self._get_count(step, sp), dtype=np.int32) + sp
751751
for sp in self.sp_with_idx
@@ -758,7 +758,7 @@ def _read_column(
758758
else:
759759
read_colname = f"p{colname}"
760760

761-
return np.concat(
761+
return np.concatenate(
762762
[
763763
self._get_quantity_for_species(read_colname, step, sp)
764764
for sp in self.sp_with_idx

0 commit comments

Comments
 (0)