-
Notifications
You must be signed in to change notification settings - Fork 0
Megha's changes #1
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
Conversation
…e, and load data set
…ion and Kg function imports
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
| self.debris_contribution = np.finfo(float).eps | ||
| # =========================== Contractility ========================== | ||
| self.Contractility = True | ||
| self.TypeOfPurseString = 0 |
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.
Should be reverted
|
|
||
| def test_compute_cell_area_edge_cases(self): | ||
| geo_test, _, _ = load_data('Geo_var_3x3_stretch.mat') | ||
|
|
||
| # Test with zero-area cells | ||
| geo_test.Cells[0].X = np.array([[0, 0], [0, 0], [0, 0]]) # Degenerate cell | ||
| geo_test.Cells[0].compute_area() | ||
| self.assertEqual(geo_test.Cells[0].Area, 0) | ||
|
|
||
| # Test with very large area | ||
| geo_test.Cells[1].X = np.array([[1e6, 1e6], [1e7, 1e7], [1e8, 1e8]]) # Extreme values | ||
| geo_test.Cells[1].compute_area() | ||
| self.assertTrue(geo_test.Cells[1].Area > 0) # a non-zero area | ||
|
|
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.
Need further explanation
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.
changing the name
Y instead of X for calc areas coz Y - vertices
First commits by Megha.