Skip to content
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

Merged
merged 5 commits into from
May 10, 2024
Merged

[SIApp] Add a SI Unit test #12298

merged 5 commits into from
May 10, 2024

Conversation

sunethwarna
Copy link
Member

📝 Description
As in the title.

This PR also remove some reminiscence of "DigitalTwin" from SIApp.

🆕 Changelog

  • Add a SI test
  • Removed some "DigitalTwin" uses.

@@ -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)
Copy link
Member

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

Copy link
Member Author

@sunethwarna sunethwarna Apr 19, 2024

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. :)

@sunethwarna sunethwarna requested a review from philbucher April 19, 2024 17:32
@sunethwarna sunethwarna merged commit 8bdc838 into master May 10, 2024
11 checks passed
@sunethwarna sunethwarna deleted the siapp/fix_cmake_from_dtapp branch May 10, 2024 13:06
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.

3 participants