-
Notifications
You must be signed in to change notification settings - Fork 248
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
[SIApp] Add a SI Unit test #12298
[SIApp] Add a SI Unit test #12298
Conversation
@@ -18,7 +18,7 @@ def test_DamagedSystem(self): | |||
|
|||
data = numpy.loadtxt("auxiliary_files/damaged_problem/measured_data.csv", comments="#", usecols=[0,3,4,5,6], delimiter=",") | |||
ref_data = numpy.loadtxt("auxiliary_files/damaged_problem/measured_data_ref.csv", comments="#", usecols=[0,3,4,5,6], delimiter=",") | |||
self.assertMatrixAlmostEqual(data, ref_data, 9) | |||
self.assertAlmostEqual(numpy.linalg.norm(data - ref_data), 0.0, 9) |
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.
why not use the numpy comparison routines like I showed in the other PR? Then you can check every value explicitly
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.
I need to get used to that. Good point :)... Now fixed. :)
📝 Description
As in the title.
This PR also remove some reminiscence of "DigitalTwin" from SIApp.
🆕 Changelog