-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move model deviation and ase calculator to deepmd_utils
#3173
Move model deviation and ase calculator to deepmd_utils
#3173
Conversation
..., 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>
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 Note
tuple of size 3
tuple of size 4
relative: Optional[float] = None, | ||
atomic: Literal[False] = False, | ||
) -> Tuple[np.ndarray, np.ndarray, np.ndarray]: | ||
... |
Check notice
Code scanning / CodeQL
Statement has no effect Note
*, | ||
atomic: Literal[True], | ||
) -> Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]: | ||
... |
Check notice
Code scanning / CodeQL
Statement has no effect Note
Codecov ReportAttention:
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. |
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
..., so they can benifit from multiple-backend DeepPot. Update docs.