Skip to content

Commit

Permalink
fix pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
Han Wang committed Jun 5, 2024
1 parent 2e1e993 commit c7bf8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpdata/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ def replicate(self, ncopy: list[int] | tuple[int, int, int]):
tmp.data["atom_numbs"] = list(
np.array(np.copy(data["atom_numbs"])) * np.prod(ncopy)
)
tmp.data["atom_types"] = np.tile(np.copy(data["atom_types"]), (np.prod(ncopy),) + (1,))
tmp.data["atom_types"] = np.tile(np.copy(data["atom_types"]), (int(np.prod(ncopy)),) + (1,))
tmp.data["atom_types"] = np.transpose(tmp.data["atom_types"]).reshape([-1])

tmp.data["cells"] = np.copy(data["cells"])
Expand Down

0 comments on commit c7bf8fc

Please sign in to comment.