-
Notifications
You must be signed in to change notification settings - Fork 439
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
Fix/rectangle to polygon #4145
Fix/rectangle to polygon #4145
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4145 +/- ##
=======================================
Coverage 95.56% 95.57%
=======================================
Files 95 95
Lines 20247 20282 +35
=======================================
+ Hits 19350 19384 +34
- Misses 897 898 +1 |
Co-authored-by: Tetsuo Koyama <tkoyama010@gmail.com>
Co-authored-by: Tetsuo Koyama <tkoyama010@gmail.com>
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.
Excellent first PR! Thanks. I have not yet looked through the tests, but some comments to get started.
Co-authored-by: MatthewFlamm <39341281+MatthewFlamm@users.noreply.github.com>
Co-authored-by: MatthewFlamm <39341281+MatthewFlamm@users.noreply.github.com>
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 made a few changes, including aligning it with our way of running tests and checking for warnings/errors.
Thanks for your work!
@tkoyama010 @akaszynski @adeak @MatthewFlamm thanks for your review. |
We generally wait 24 hours to allow all contributors to say their peace before merging. Expect it merged tomorrow. Next release is 0.39.0, probably by the end of this month or sooner. |
Great first contribution. Thank you! |
assert np.allclose(mesh.points, pt_tuples) | ||
|
||
|
||
def test_rectangle_not_orthognal_entries(): |
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.
Consider adding a docstring for the test_rectangle_not_orthognal_entries
function to provide more context and describe its purpose.
def test_rectangle_not_orthognal_entries(): | |
def test_rectangle_not_orthogonal_entries(): | |
"""Test the error handling when the input points are not orthogonal.""" |
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 is here for testing of another library)
Overview
This PR address the problem of having a Rectangle function that behaves as a Quadrilateral factory.
resolves #1604
Details