generated from ansys/template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix percentage distance methods (#339)
* Corrected calculation of arc length * Corrected make percentage method use percentage not fraction * Deprecated get_coordinate_from_percentage_distance methods. Replaced by update to get_coordinate_from_distance methods. * update tests * Added deprecation warnings * Added more tests for updated get_coordinate_from_distance method (new tests for new optional arguments) * Added more tests for updated get_coordinate_from_distance method (tests for warnings when multiple arguments are given) * Added more tests for updated get_coordinate_from_distance method (test for arc drawn with negative radius) * Added test for arc with negative radius for deprecated get_coordinate_from_percentage_distance arc method * Added tests to check error is raised when no distance, percentage or fraction is provided * Update src/ansys/motorcad/core/geometry.py Co-authored-by: James Packer <[email protected]> * Update src/ansys/motorcad/core/geometry.py Co-authored-by: James Packer <[email protected]> * Update src/ansys/motorcad/core/geometry.py Co-authored-by: James Packer <[email protected]> * Update src/ansys/motorcad/core/geometry.py Co-authored-by: James Packer <[email protected]> * Update src/ansys/motorcad/core/geometry.py Co-authored-by: James Packer <[email protected]> --------- Co-authored-by: Jack Davies <[email protected]> Co-authored-by: James Packer <[email protected]>
- Loading branch information
1 parent
eab6e22
commit 3061cb5
Showing
2 changed files
with
199 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters