Skip to content

[SIApp] Add a SI Unit test#12298

Merged
sunethwarna merged 5 commits intomasterfrom
siapp/fix_cmake_from_dtapp
May 10, 2024
Merged

[SIApp] Add a SI Unit test#12298
sunethwarna merged 5 commits intomasterfrom
siapp/fix_cmake_from_dtapp

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.

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
@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