Skip to content

Commit

Permalink
fix pyright
Browse files Browse the repository at this point in the history
Signed-off-by: zjgemi <[email protected]>
  • Loading branch information
zjgemi committed Oct 21, 2024
1 parent cae6577 commit 5cf58f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dpgen2/exploration/render/traj_render_lammps.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def _load_one_model_devi(self, fname, model_devi):
else:
dd = np.loadtxt(fname)
if (
len(np.shape(dd)) == 1
): # In case model-devi.out is 1-dimensional # type: ignore
len(np.shape(dd)) == 1 # type: ignore
): # In case model-devi.out is 1-dimensional
dd = dd.reshape((1, len(dd))) # type: ignore

Check warning on line 69 in dpgen2/exploration/render/traj_render_lammps.py

View check run for this annotation

Codecov / codecov/patch

dpgen2/exploration/render/traj_render_lammps.py#L69

Added line #L69 was not covered by tests

model_devi.add(DeviManager.MAX_DEVI_V, dd[:, 1]) # type: ignore
Expand Down

0 comments on commit 5cf58f3

Please sign in to comment.