Skip to content

Commit

Permalink
pySVTK fix numpy deprecated types
Browse files Browse the repository at this point in the history
  • Loading branch information
burlen committed Jan 10, 2023
1 parent 1c48b3b commit 4d059ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/pysvtk/numpy_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_svtk_array_type(numpy_array_type):

def get_svtk_to_numpy_typemap():
"""Returns the SVTK array type to numpy array type mapping."""
_svtk_np = {svtkConstants.SVTK_BIT:numpy.bool,
_svtk_np = {svtkConstants.SVTK_BIT:numpy.int8,
svtkConstants.SVTK_CHAR:numpy.int8,
svtkConstants.SVTK_SIGNED_CHAR:numpy.int8,
svtkConstants.SVTK_UNSIGNED_CHAR:numpy.uint8,
Expand Down

0 comments on commit 4d059ba

Please sign in to comment.