-
Notifications
You must be signed in to change notification settings - Fork 139
feat: adding PLVAR to plot commands #4204
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
Conversation
…/github.com/ansys/pymapdl into feat/using-screenshot-instead-to-show-plots
…an do another PR about it
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #4204 +/- ##
=======================================
Coverage 91.31% 91.31%
=======================================
Files 193 193
Lines 15731 15710 -21
=======================================
- Hits 14364 14345 -19
+ Misses 1367 1365 -2 🚀 New features to boost your workflow:
|
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.
Pull Request Overview
This pull request adds the PLVAR command to the plot commands list and refactors the plotting functionality to use a unified screenshot approach. The main purpose is to enable PLVAR command to work with PyMAPDL's plotting infrastructure.
- Adds PLVAR to the list of recognized plot commands
- Refactors plot command handling to use
screenshot()
method consistently - Improves file naming and path handling for plot downloads
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
src/ansys/mapdl/core/mapdl_core.py | Adds PLVAR to plot commands list and refactors plot handling to use screenshot method |
src/ansys/mapdl/core/mapdl_grpc.py | Simplifies file filtering logic using list comprehension |
tests/test_plotting.py | Updates tests for new plotting behavior and adds PLVAR test |
tests/test_mapdl.py | Updates screenshot test expectations for new file naming |
examples/00-mapdl-examples/psd-vm203.py | Demonstrates PLVAR usage in example |
doc/changelog.d/4204.added.md | Changelog entry for PLVAR addition |
doc/changelog.d/4196.added.md | Duplicate changelog entry |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This comment was marked as duplicate.
This comment was marked as duplicate.
@pyansys-ci-bot LGTM |
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.
Descriptiona
As the title.
Issue linked
Close #4187
Checklist
draft
if it is not ready to be reviewed yet.feat: adding new MAPDL command
)