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

Feat/active tensors #969

Merged
merged 2 commits into from
Oct 29, 2020
Merged

Conversation

thomgrand
Copy link
Contributor

@thomgrand thomgrand commented Oct 28, 2020

Overview

This branch fixes bugs related to #968 and additionally adds the possibility to set active tensors.

Details

Methods in pyvista/core/common.py were added and modified to check for return values of the SetActive* methods. Additional tests were added to test for correctness of the new methods and the former bugs of setting active vectors.

…ructure:

- Setting the active vectors to None now applies to both structures
- Erroneous return values (<0) now throw an error and leave the ndarray in the same state as the VTK-array
Modified the tests to query this behaviour

Added support for SetActiveTensors, similar to SetActiveVectors
@codecov
Copy link

codecov bot commented Oct 28, 2020

Codecov Report

Merging #969 into master will decrease coverage by 0.19%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #969      +/-   ##
==========================================
- Coverage   86.99%   86.80%   -0.20%     
==========================================
  Files          36       36              
  Lines        9066     9144      +78     
==========================================
+ Hits         7887     7937      +50     
- Misses       1179     1207      +28     

Copy link
Member

@akaszynski akaszynski left a comment

Choose a reason for hiding this comment

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

Nice work! Thanks for adding this.

@akaszynski akaszynski merged commit 071fa97 into pyvista:master Oct 29, 2020
@akaszynski akaszynski mentioned this pull request Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants