Skip to content
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 percentage distance methods #339

Merged
merged 25 commits into from
Nov 27, 2024
Merged

Conversation

JackB-Ansys
Copy link
Collaborator

Deprecate get_coordinate_from_percentage_distance methods because these actually use fractional distances. Replace this functionality by adding optional arguments for get_coordinate_from_distance, where user can specify a percentage or fraction instead of specifying an absolute distance.

@github-actions github-actions bot added the bug Something isn't working label Jul 15, 2024
Copy link

codecov bot commented Jul 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.47%. Comparing base (e06a5e0) to head (c5c03fa).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #339      +/-   ##
==========================================
+ Coverage   87.27%   87.47%   +0.20%     
==========================================
  Files          20       20              
  Lines        2192     2212      +20     
==========================================
+ Hits         1913     1935      +22     
+ Misses        279      277       -2     

@jgsdavies
Copy link
Collaborator

Codecov Report

Attention: Patch coverage is 74.19355% with 8 lines in your changes missing coverage. Please review.

Project coverage is 84.10%. Comparing base (a3afd47) to head (0f9f663).
Report is 2 commits behind head on main.

Additional details and impacted files

@JackB-Ansys You will need to improve the existing tests to cover all the new lines of code

src/ansys/motorcad/core/geometry.py Show resolved Hide resolved
src/ansys/motorcad/core/geometry.py Show resolved Hide resolved
tests/test_geometry.py Show resolved Hide resolved
@jgsdavies
Copy link
Collaborator

Needs merge from main

Copy link
Contributor

@james-packer james-packer left a comment

Choose a reason for hiding this comment

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

A few documentation lines where line and arc need to be swapped.

src/ansys/motorcad/core/geometry.py Outdated Show resolved Hide resolved
src/ansys/motorcad/core/geometry.py Outdated Show resolved Hide resolved
src/ansys/motorcad/core/geometry.py Outdated Show resolved Hide resolved
src/ansys/motorcad/core/geometry.py Outdated Show resolved Hide resolved
src/ansys/motorcad/core/geometry.py Outdated Show resolved Hide resolved
@jgsdavies jgsdavies merged commit 3061cb5 into main Nov 27, 2024
21 checks passed
@jgsdavies jgsdavies deleted the fix_percentage_distance_methods branch November 27, 2024 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants