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

API Method to Retrieve File Name and Status #384

Merged
merged 9 commits into from
Oct 8, 2024
Merged

Conversation

ShreyaGursal
Copy link
Contributor

@ShreyaGursal ShreyaGursal commented Sep 20, 2024

Added an API method to retrieve the .mot file name and path to the user in pymotorcad. Informs the user if there is no file presently loaded as well. A test covering this functionality has also been added.

PR for MotorCAD: https://github.com/ansys-internal/motor-cad/pull/204

@ShreyaGursal ShreyaGursal added enhancement New features or code improvements Core API Requires changes to Motor-CAD API. (Needs to be done by Motor-CAD development team) labels Sep 20, 2024
@ShreyaGursal ShreyaGursal self-assigned this Sep 20, 2024
Copy link

codecov bot commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.12%. Comparing base (378875f) to head (a98e1fc).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #384      +/-   ##
==========================================
+ Coverage   87.08%   87.12%   +0.04%     
==========================================
  Files          20       20              
  Lines        2028     2035       +7     
==========================================
+ Hits         1766     1773       +7     
  Misses        262      262              

@jgsdavies jgsdavies linked an issue Sep 25, 2024 that may be closed by this pull request
@jgsdavies jgsdavies merged commit abeeef5 into main Oct 8, 2024
21 checks passed
@jgsdavies jgsdavies deleted the retirieve_file_info branch October 8, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core API Requires changes to Motor-CAD API. (Needs to be done by Motor-CAD development team) enhancement New features or code improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add access to current .mot file name and if a file is loaded.
2 participants