Skip to content

Commit

Permalink
cell may be none
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz committed Sep 24, 2024
1 parent b3f0dd7 commit be6a8dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/dpmodel/utils/nlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def extend_coord_with_ghosts(
maping extended index to the local index
"""
xp = array_api_compat.array_namespace(coord, atype, cell)
xp = array_api_compat.array_namespace(coord, atype)
nf, nloc = atype.shape
aidx = xp.tile(xp.arange(nloc)[xp.newaxis, :], (nf, 1)) # pylint: disable=no-explicit-dtype
if cell is None:
Expand Down

0 comments on commit be6a8dc

Please sign in to comment.