-
Notifications
You must be signed in to change notification settings - Fork 486
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
use np.testing.assert_almost_equal
for array comparing
#1059
use np.testing.assert_almost_equal
for array comparing
#1059
Conversation
Codecov Report
@@ Coverage Diff @@
## devel #1059 +/- ##
===========================================
- Coverage 75.16% 64.28% -10.89%
===========================================
Files 87 5 -82
Lines 6959 14 -6945
===========================================
- Hits 5231 9 -5222
+ Misses 1728 5 -1723 Continue to review full report at Codecov.
|
dp_random.seed(0) | ||
data2 = DeepmdDataSystem(['system_0', 'system_1'], | ||
5, | ||
10, | ||
1.0) | ||
data2.add('force', 3, atomic = True, must = True) | ||
data2.add('energy', 1, must = True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original data1
and data2
are not equal - but the original compare method didn't find it...
I'm not sure what's the purpose of this test case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a bug in the UT...
See my comment below.