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

Update incorrectly raised errors to VTKVersionError #2199

Merged
merged 9 commits into from
Mar 18, 2022
Merged

Update incorrectly raised errors to VTKVersionError #2199

merged 9 commits into from
Mar 18, 2022

Conversation

not-so-rabh
Copy link
Contributor

Overview

Replaces instances of incorrectly raised errors which could be replaced by VTKVersionError.
Resolves: #2195

@github-actions github-actions bot added the maintenance Low-impact maintenance activity label Feb 12, 2022
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

🚀 Thanks for opening your first pull request in PyVista! 🚀 Please make sure you read (skim 😉) our Contributing Guide and abide by our Code of Conduct.
A few things to keep in mind:

  • Remember to run the tests locally to make debugging issues easier.
  • If you need help writing tests, take a look at the existing ones for inspiration. If you do not know where to start, let @pyvista/developers know and we will walk you through it.
  • All new features should be documented. It helps to write the docstrings for your functions/classes before writing the code. This will help you think about your code design and results in better code.
  • No matter what, we are really grateful that you put in the effort to open this PR! ⭐

pyvista/_vtk.py Outdated Show resolved Hide resolved
@adeak adeak changed the title updated incorrectly raised errors to VTKVersionError Update incorrectly raised errors to VTKVersionError Feb 12, 2022
pyvista/_vtk.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Feb 13, 2022

Codecov Report

Merging #2199 (2321fa3) into main (1410af2) will increase coverage by 0.16%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2199      +/-   ##
==========================================
+ Coverage   93.31%   93.47%   +0.16%     
==========================================
  Files          75       74       -1     
  Lines       15616    15717     +101     
==========================================
+ Hits        14572    14692     +120     
+ Misses       1044     1025      -19     

Copy link
Member

@adeak adeak left a comment

Choose a reason for hiding this comment

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

One recommended change to make code coverage happy, otherwise this looks good to me. Great work @not-so-rabh :)

pyvista/plotting/plotting.py Outdated Show resolved Hide resolved
pyvista/core/pointset.py Outdated Show resolved Hide resolved
pyvista/__init__.py Outdated Show resolved Hide resolved
@adeak adeak self-assigned this Feb 14, 2022
…dd_VTKVersionError

* upstream/main:
  Bump typing-extensions from 4.0.1 to 4.1.1 (#2216)
  Update imageio requirement from <2.16.0 to <2.17.0 (#2215)
  Add flake8-black to dependencies (#2213)
  Fix operater space by black version 22.1.0 (#2212)
  Style/black and resolve many flake8 issues (#2180)
  Update link to CONTRIBUTING.rst in greetings action (#2200)
@adeak adeak removed their assignment Feb 14, 2022
adeak
adeak previously requested changes Feb 14, 2022
pyvista/plotting/plotting.py Outdated Show resolved Hide resolved
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.

Calling this good to go. Sorry for the delay on our end cleaning this up.

@akaszynski akaszynski merged commit 0da6fe2 into pyvista:main Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Low-impact maintenance activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maintenance item: Use VTKVersionError instead of RuntimeError
4 participants