+
Skip to content

Conversation

PProfizi
Copy link
Contributor

@PProfizi PProfizi commented Jul 4, 2025

As the Plotter.add_field method overrides data for fields with overlapping scoping, we merge the fields in FieldsContainer.plot() before the call to add_field.

The previous plots for a FieldContainer with several meshes with the same support were wrong and only showed the data of the last field.

@PProfizi PProfizi self-assigned this Jul 4, 2025
@PProfizi PProfizi added the bug Something isn't working label Jul 4, 2025
Copy link

codecov bot commented Jul 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.16%. Comparing base (3f309ea) to head (6ced741).
Report is 3 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2414      +/-   ##
==========================================
- Coverage   84.19%   84.16%   -0.03%     
==========================================
  Files          91       91              
  Lines       10597    10600       +3     
==========================================
  Hits         8922     8922              
- Misses       1675     1678       +3     

Copy link
Contributor

github-actions bot commented Jul 4, 2025

The documentation for this pull request will be available at https://dpf.docs.pyansys.com/pull/2414. Please allow some time for the documentation to be deployed.

@PProfizi
Copy link
Contributor Author

PProfizi commented Jul 7, 2025

The documentation generated shows no difference with current one in example plots.

@PProfizi PProfizi requested a review from rafacanton July 7, 2025 15:42
@PProfizi PProfizi requested a review from ansys-akarcher July 7, 2025 15:43
@PProfizi PProfizi merged commit ba025f8 into master Jul 9, 2025
128 of 132 checks passed
@PProfizi PProfizi deleted the fix/plotter_add_fields_with_same_mesh branch July 9, 2025 12:19
Copy link
Contributor

github-actions bot commented Jul 9, 2025

This PR has been closed. Documentation for this pull request will shortly be removed from its former deployment address.

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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载