Skip to content

Commit

Permalink
fix: pyright and upgrade dflow dependency
Browse files Browse the repository at this point in the history
Signed-off-by: zjgemi <liuxin_zijian@163.com>
  • Loading branch information
zjgemi committed Oct 18, 2024
1 parent 899aaba commit 47a551d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dpgen2/exploration/render/traj_render_lammps.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_model_devi(

def _load_one_model_devi(self, fname, model_devi):
if isinstance(fname, HDF5Dataset):
dd = fname.get_data()
dd = fname.get_data() # type: ignore

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

View check run for this annotation

Codecov / codecov/patch

dpgen2/exploration/render/traj_render_lammps.py#L63

Added line #L63 was not covered by tests
else:
dd = np.loadtxt(fname)
if len(np.shape(dd)) == 1: # In case model-devi.out is 1-dimensional

Check failure on line 66 in dpgen2/exploration/render/traj_render_lammps.py

View workflow job for this annotation

GitHub Actions / pyright

Argument of type "Unknown | NDArray[float64] | None" cannot be assigned to parameter "a" of type "ArrayLike" in function "shape" (reportGeneralTypeIssues)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ classifiers = [
dependencies = [
'numpy',
'dpdata>=0.2.20',
'pydflow>=1.8.88',
'pydflow>=1.8.95',
'dargs>=0.3.1',
'scipy',
'lbg',
Expand Down

0 comments on commit 47a551d

Please sign in to comment.