Skip to content

Conversation

germa89
Copy link
Collaborator

@germa89 germa89 commented Aug 28, 2025

Descriptiona

As the title.

Issue linked

Close #4187

Checklist

@germa89 germa89 requested a review from a team as a code owner August 28, 2025 11:15
@germa89 germa89 requested review from clatapie and pyansys-ci-bot and removed request for a team August 28, 2025 11:15
@github-actions github-actions bot added examples Publishing PyMAPDL examples documentation Documentation related (improving, adding, etc) labels Aug 28, 2025
@github-actions github-actions bot added the new feature Request or proposal for a new feature label Aug 28, 2025
Copy link

codecov bot commented Aug 28, 2025

Codecov Report

❌ Patch coverage is 96.29630% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 91.31%. Comparing base (ec3cb1d) to head (996c540).
⚠️ Report is 6 commits behind head on main.

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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Base automatically changed from feat/using-screenshot-instead-to-show-plots to main August 28, 2025 11:49
@Copilot Copilot AI review requested due to automatic review settings August 28, 2025 12:05
Copy link
Contributor

@Copilot Copilot AI left a 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.

@germa89 germa89 enabled auto-merge (squash) August 29, 2025 08:40
@germa89

This comment was marked as duplicate.

@germa89
Copy link
Collaborator Author

germa89 commented Aug 29, 2025

@pyansys-ci-bot LGTM

Copy link
Contributor

@pyansys-ci-bot pyansys-ci-bot left a comment

Choose a reason for hiding this comment

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

✅ Approving this PR because germa89 said so in here 😬

LGTM

@germa89 germa89 merged commit 3a1b2a5 into main Aug 29, 2025
50 checks passed
@germa89 germa89 deleted the feat/adding-plvar-to-plot-commands branch August 29, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation related (improving, adding, etc) examples Publishing PyMAPDL examples new feature Request or proposal for a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PLVAR should open a plot window

2 participants