Skip to content

Commit

Permalink
kk
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Dec 6, 2023
1 parent ee0ab0f commit 31dae15
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/infer/deep_pot.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def _prepare_feed_dict(
aparam = np.reshape(aparam, [nframes, natoms * fdim])

# make natoms_vec and default_mesh
if self.neighbor_list is not None:
if self.neighbor_list is None:
natoms_vec = self.make_natoms_vec(atom_types, mixed_type=mixed_type)
assert natoms_vec[0] == natoms
mesh = make_default_mesh(pbc, mixed_type)

Check warning on line 487 in deepmd/infer/deep_pot.py

View check run for this annotation

Codecov / codecov/patch

deepmd/infer/deep_pot.py#L484-L487

Added lines #L484 - L487 were not covered by tests
Expand Down
8 changes: 8 additions & 0 deletions source/tests/test_deeppot_a.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,14 @@ def setUpClass(cls):
),
)

@unittest.skip("multiple frames not supported")
def test_2frame_atm(self):
pass

@unittest.skip("Zero atoms not supported")
def test_zero_input(self):
pass

@unittest.skip("eval_descriptor not supported")
def test_descriptor(self):
pass

0 comments on commit 31dae15

Please sign in to comment.