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

Fixing UI warnings #332

Merged
merged 1 commit into from Oct 24, 2020
Merged

Fixing UI warnings #332

merged 1 commit into from Oct 24, 2020

Conversation

Nibba2018
Copy link
Member

Context: #317

The following warning:

DeprecationWarning: Converting 'np.character' to a dtype is deprecated. The current result is 'np.dtype(np.str_)' which is not strictly correct. Note that 'np.character' is generally deprecated and 'S1' should be used.

is generated when numpy arrays are converted to vtk arrays in vtk.util.numpy_support.get_vtk_array_type. This method is mainly used by the methods in fury.utils and fury.actors. This warning is generated when arrays contain character values in them, but while test I was not able to find any character values present in the array when the tests are run.

This warning is also the most recurring warning compared to the rest and also the only one in fury.ui. I created a file pytest.ini to ignore this particular warning and got the following results:

  • All Fury test warnings reduced from 892 to 14
  • All Fury UI test warnings reduced from 108 to 0

I am not sure if there is a better way to fix these.

Copy link
Contributor

@skoudoro skoudoro left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @Nibba2018! I do not know why Azure pipeline failed so I just restarted them. but your PR is ready to go

@codecov
Copy link

codecov bot commented Oct 24, 2020

Codecov Report

Merging #332 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #332   +/-   ##
=======================================
  Coverage   88.75%   88.75%           
=======================================
  Files          21       21           
  Lines        5157     5157           
  Branches      672      672           
=======================================
  Hits         4577     4577           
  Misses        408      408           
  Partials      172      172           

@skoudoro skoudoro marked this pull request as ready for review October 24, 2020 05:08
@skoudoro skoudoro added this to the v0.7.0 milestone Oct 24, 2020
@skoudoro skoudoro merged commit 3db352d into fury-gl:master Oct 24, 2020
@Nibba2018 Nibba2018 deleted the fix_ui_warns branch October 24, 2020 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants