Skip to content

Conversation

@njzjz
Copy link
Member

@njzjz njzjz commented Jan 24, 2024

..., so they can benifit from multiple-backend DeepPot. Update docs.

..., so they can benifit from multiple-backend DeepPot.
Update docs.

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Comment on lines +50 to +55
def calc_model_devi_f(
fs: np.ndarray,
real_f: Optional[np.ndarray] = None,
relative: Optional[float] = None,
atomic: bool = False,
) -> Tuple[np.ndarray, ...]:

Check notice

Code scanning / CodeQL

Returning tuples with varying lengths

calc_model_devi_f returns [tuple of size 3](1) and [tuple of size 4](2).
relative: Optional[float] = None,
atomic: Literal[False] = False,
) -> Tuple[np.ndarray, np.ndarray, np.ndarray]:
...

Check notice

Code scanning / CodeQL

Statement has no effect

This statement has no effect.
*,
atomic: Literal[True],
) -> Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]:
...

Check notice

Code scanning / CodeQL

Statement has no effect

This statement has no effect.
@codecov
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

Attention: 16 lines in your changes are missing coverage. Please review.

Comparison is base (5dfbb55) 76.06% compared to head (60e44b4) 76.05%.

Files Patch % Lines
deepmd_utils/infer/model_devi.py 94.11% 9 Missing ⚠️
deepmd_utils/calculator.py 80.55% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3173      +/-   ##
==========================================
- Coverage   76.06%   76.05%   -0.01%     
==========================================
  Files         280      282       +2     
  Lines       25644    25647       +3     
  Branches     1591     1591              
==========================================
  Hits        19507    19507              
- Misses       5213     5216       +3     
  Partials      924      924              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@wanghan-iapcm wanghan-iapcm merged commit 2a32c87 into deepmodeling:devel Jan 24, 2024
@njzjz njzjz mentioned this pull request Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants