Skip to content

Commit

Permalink
fix import issue
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
  • Loading branch information
njzjz committed May 17, 2024
1 parent 69d4fa0 commit 04e584b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dpdata/data_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import numpy as np

from dpdata.bond_order_system import BondOrderSystem
from dpdata.plugin import Plugin

if TYPE_CHECKING:
Expand Down Expand Up @@ -74,8 +73,7 @@ def real_shape(self, system: System) -> tuple[int]:
shape.append(system.get_natoms())
elif ii is Axis.NBONDS:
# BondOrderSystem
assert isinstance(system, BondOrderSystem)
shape.append(system.get_nbonds())
shape.append(system.get_nbonds()) # type: ignore
elif ii == -1:
shape.append(AnyInt(-1))
elif isinstance(ii, int):
Expand Down

0 comments on commit 04e584b

Please sign in to comment.