Skip to content

Split a polyline with a certain number of segment. #986

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

Merged
merged 9 commits into from
Mar 28, 2022
Merged

Conversation

MaxJPRey
Copy link
Collaborator

@MaxJPRey MaxJPRey commented Mar 23, 2022

Add the ability to split a polyline with a certain number of segment.
Fix #952 .
Fix #975 .

@codecov
Copy link

codecov bot commented Mar 23, 2022

Codecov Report

Merging #986 (46dc28d) into main (e6d6ba6) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #986      +/-   ##
==========================================
+ Coverage   80.65%   80.67%   +0.02%     
==========================================
  Files         130      130              
  Lines       38532    38571      +39     
==========================================
+ Hits        31077    31118      +41     
+ Misses       7455     7453       -2     

Copy link
Collaborator

@maxcapodi78 maxcapodi78 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add assert in unittest

@@ -486,3 +487,23 @@ def test_48_coordinate_systems_parametric(self):
cs4 = self.aedtapp.modeler.create_coordinate_system(name="CSP4", mode="zxz", phi=43, theta="126deg", psi=0)
tol = 1e-9
assert sum([abs(x1 - x2) for (x1, x2) in zip(cs3.quaternion, cs4.quaternion)]) < tol

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All tests should have assert checks. Is there a way to also check if points have been created correctly?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure I will do.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maxcapodi78 Done. Thanks for the suggestion.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maxcapodi78 I used the get_oo_property_value() in the test assertion to make sure that the modeler operations were correct.

Copy link
Collaborator

@maxcapodi78 maxcapodi78 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@maxcapodi78 maxcapodi78 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit Tests has to run in nongraphical

@maxcapodi78 maxcapodi78 merged commit 17d7660 into main Mar 28, 2022
@maxcapodi78 maxcapodi78 deleted the fix/issue_952 branch March 28, 2022 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CreatePolyline does not work if segment is added before origin point modeler insert segmented Spline
2 participants