Skip to content

Bump pyvista from 0.44.2 to 0.45.0 in /requirements #2229

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 21, 2025

Bumps pyvista from 0.44.2 to 0.45.0.

Release notes

Sourced from pyvista's releases.

v0.45.0

Highlights

  • VTK 9.4.2 is now supported
  • Python 3.13 now supported
  • Support for Python 3.8 has been dropped

New Filters

Improved Transformations

New MultiBlock Methods and Properties

New ImageData Properties

New Utilities

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pyvista](https://github.com/pyvista/pyvista) from 0.44.2 to 0.45.0.
- [Release notes](https://github.com/pyvista/pyvista/releases)
- [Commits](pyvista/pyvista@v0.44.2...v0.45.0)

---
updated-dependencies:
- dependency-name: pyvista
  dependency-version: 0.45.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Related to package requirements maintenance Repository structure maintenance labels Apr 21, 2025
Copy link

codecov bot commented Apr 21, 2025

❌ 90 Tests Failed:

Tests completed Failed Passed Skipped
21530 90 21440 2763
View the top 3 failed test(s) by shortest run time
tests/test_geometry.py::test_create_plane_from_point_and_line[point0-line0]
Stack Traces | 0.448s run time
transform = array([[nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [ 0.,  0.,  0.,  1.]])

    def validate_transform4x4(
        transform: TransformLike, /, *, must_be_finite: bool = True, name: str = 'Transform'
    ) -> NumpyArray[float]:
        """Validate transform-like input as a 4x4 ndarray.
    
        Parameters
        ----------
        transform : TransformLike
            Transformation matrix as a 3x3 or 4x4 array, 3x3 or 4x4 vtkMatrix, vtkTransform,
            or a SciPy ``Rotation`` instance. If the input is 3x3, the array is padded using
            a 4x4 identity matrix.
    
        must_be_finite : bool, default: True
            :func:`Check <pyvista.core._validation.check.check_finite>`
            if all elements of the array are finite, i.e. not ``infinity``
            and not Not a Number (``NaN``).
    
        name : str, default: "Transform"
            Variable name to use in the error messages if any of the
            validation checks fail.
    
        Returns
        -------
        np.ndarray
            Validated 4x4 transformation matrix.
    
        See Also
        --------
        validate_transform3x3
            Similar function for 3x3 transforms.
    
        validate_array
            Generic array validation function.
    
        """
        check_string(name, name='Name')
        try:
            arr = np.eye(4)  # initialize
>           arr[:3, :3] = validate_transform3x3(transform, must_be_finite=must_be_finite, name=name)

..../test-api/lib/python3.10.../core/_validation/validate.py:620: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

transform = array([[nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [ 0.,  0.,  0.,  1.]])

    def validate_transform3x3(
        transform: TransformLike, /, *, must_be_finite: bool = True, name: str = 'Transform'
    ):
        """Validate transform-like input as a 3x3 ndarray.
    
        Parameters
        ----------
        transform : RotationLike
            Transformation matrix as a 3x3 array, vtk matrix, or a SciPy ``Rotation``
            instance.
    
            .. note::
    
               Although ``RotationLike`` inputs are accepted, no checks are done
               to verify that the transformation is actually a rotation.
               Therefore, any 3x3 transformation is acceptable.
    
        must_be_finite : bool, default: True
            :func:`Check <pyvista.core._validation.check.check_finite>`
            if all elements of the array are finite, i.e. not ``infinity``
            and not Not a Number (``NaN``).
    
        name : str, default: "Transform"
            Variable name to use in the error messages if any of the
            validation checks fail.
    
        Returns
        -------
        np.ndarray
            Validated 3x3 transformation matrix.
    
        See Also
        --------
        validate_transform4x4
            Similar function for 4x4 transforms.
    
        validate_array
            Generic array validation function.
    
        """
        check_string(name, name='Name')
        if isinstance(transform, vtkMatrix3x3):
            return _array_from_vtkmatrix(transform, shape=(3, 3))
        else:
            try:
                return validate_array(
                    transform,  # type: ignore[arg-type]
                    must_have_shape=(3, 3),
                    must_be_finite=must_be_finite,
                    name=name,
                )
            except ValueError:
                pass
            except TypeError:
                try:
                    from scipy.spatial.transform import Rotation
                except ModuleNotFoundError:  # pragma: no cover
                    pass
                else:
                    if isinstance(transform, Rotation):
                        # Get matrix output and try validating again
                        return validate_transform3x3(
                            transform.as_matrix(), must_be_finite=must_be_finite, name=name
                        )
    
        error_message = (
            f'Input transform must be one of:\n'
            '\tvtkMatrix3x3\n'
            '\t3x3 np.ndarray\n'
            '\tscipy.spatial.transform.Rotation\n'
            f'Got {reprlib.repr(transform)} with type {type(transform)} instead.'
        )
>       raise TypeError(error_message)
E       TypeError: Input transform must be one of:
E       	vtkMatrix3x3
E       	3x3 np.ndarray
E       	scipy.spatial.transform.Rotation
E       Got array([[nan, ....,  0.,  1.]]) with type <class 'numpy.ndarray'> instead.

..../test-api/lib/python3.10.../core/_validation/validate.py:722: TypeError

During handling of the above exception, another exception occurred:

point = [0.0, 0.0, 0.0], line = [[0.0, 0.0, 0.0], [0.0, 0.0, 1.0]]

    @pytest.mark.parametrize(("point", "line"), plane_point_line_data)
    def test_create_plane_from_point_and_line(point, line):
        plane = create_plane_from_point_and_line(
            point() if callable(point) else point, line() if callable(line) else line
        )
>       plane.plot()

tests/test_geometry.py:269: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
..../test-api/lib/python3.10.../dpf/core/geometry.py:451: in plot
    pl.add_plane(self)
..../test-api/lib/python3.10.../dpf/core/plotter.py:500: in add_plane
    self._internal_plotter.add_plane(plane, field, **kwargs)
..../test-api/lib/python3.10.../dpf/core/plotter.py:116: in add_plane
    plane_plot = pv.Plane(
..../test-api/lib/python3.10.../core/utilities/geometric_objects.py:1073: in Plane
    translate(surf, center, direction)
..../test-api/lib/python3.10.../core/utilities/geometric_sources.py:85: in translate
    surf.transform(trans, inplace=True)
..../test-api/lib/python3.10.../core/filters/data_object.py:195: in transform
    t = trans if isinstance(trans, Transform) else Transform(trans)
..../test-api/lib/python3.10.../core/utilities/transform.py:269: in __init__
    self.matrix = trans  # type: ignore[assignment]
..../test-api/lib/python3.10.../core/utilities/transform.py:1382: in matrix
    self.compose(trans)
..../test-api/lib/python3.10.../core/utilities/transform.py:1335: in compose
    array = _validation.validate_transform4x4(
..../test-api/lib/python3.10.../core/_validation/validate.py:628: in validate_transform4x4
    arr = validate_array(
..../test-api/lib/python3.10.../core/_validation/validate.py:337: in validate_array
    check_finite(arr_out, name=name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

array = array([[nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [ 0.,  0.,  0.,  1.]])

    def check_finite(array: _ArrayLikeOrScalar[NumberType], /, *, name: str = 'Array') -> None:
        """Check if an array has finite values, i.e. no NaN or Inf values.
    
        Parameters
        ----------
        array : float | ArrayLike[float]
            Number or array to check.
    
        name : str, default: "Array"
            Variable name to use in the error messages if any are raised.
    
        Raises
        ------
        ValueError
            If the array has any ``Inf`` or ``NaN`` values.
    
        See Also
        --------
        check_real
    
        Examples
        --------
        Check if an array's values are finite.
    
        >>> from pyvista import _validation
        >>> _validation.check_finite([1, 2, 3])
    
        """
        array = array if isinstance(array, np.ndarray) else _cast_to_numpy(array)
        if not np.all(np.isfinite(array)):
            msg = f'{name} must have finite values.'
>           raise ValueError(msg)
E           ValueError: matrix must have finite values.

..../test-api/lib/python3.10.../core/_validation/check.py:307: ValueError
tests/test_geometry.py::test_create_plane_from_lines[line10-line20]
Stack Traces | 0.449s run time
transform = array([[nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [ 0.,  0.,  0.,  1.]])

    def validate_transform4x4(
        transform: TransformLike, /, *, must_be_finite: bool = True, name: str = 'Transform'
    ) -> NumpyArray[float]:
        """Validate transform-like input as a 4x4 ndarray.
    
        Parameters
        ----------
        transform : TransformLike
            Transformation matrix as a 3x3 or 4x4 array, 3x3 or 4x4 vtkMatrix, vtkTransform,
            or a SciPy ``Rotation`` instance. If the input is 3x3, the array is padded using
            a 4x4 identity matrix.
    
        must_be_finite : bool, default: True
            :func:`Check <pyvista.core._validation.check.check_finite>`
            if all elements of the array are finite, i.e. not ``infinity``
            and not Not a Number (``NaN``).
    
        name : str, default: "Transform"
            Variable name to use in the error messages if any of the
            validation checks fail.
    
        Returns
        -------
        np.ndarray
            Validated 4x4 transformation matrix.
    
        See Also
        --------
        validate_transform3x3
            Similar function for 3x3 transforms.
    
        validate_array
            Generic array validation function.
    
        """
        check_string(name, name='Name')
        try:
            arr = np.eye(4)  # initialize
>           arr[:3, :3] = validate_transform3x3(transform, must_be_finite=must_be_finite, name=name)

..../test-api/lib/python3.10.../core/_validation/validate.py:620: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

transform = array([[nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [ 0.,  0.,  0.,  1.]])

    def validate_transform3x3(
        transform: TransformLike, /, *, must_be_finite: bool = True, name: str = 'Transform'
    ):
        """Validate transform-like input as a 3x3 ndarray.
    
        Parameters
        ----------
        transform : RotationLike
            Transformation matrix as a 3x3 array, vtk matrix, or a SciPy ``Rotation``
            instance.
    
            .. note::
    
               Although ``RotationLike`` inputs are accepted, no checks are done
               to verify that the transformation is actually a rotation.
               Therefore, any 3x3 transformation is acceptable.
    
        must_be_finite : bool, default: True
            :func:`Check <pyvista.core._validation.check.check_finite>`
            if all elements of the array are finite, i.e. not ``infinity``
            and not Not a Number (``NaN``).
    
        name : str, default: "Transform"
            Variable name to use in the error messages if any of the
            validation checks fail.
    
        Returns
        -------
        np.ndarray
            Validated 3x3 transformation matrix.
    
        See Also
        --------
        validate_transform4x4
            Similar function for 4x4 transforms.
    
        validate_array
            Generic array validation function.
    
        """
        check_string(name, name='Name')
        if isinstance(transform, vtkMatrix3x3):
            return _array_from_vtkmatrix(transform, shape=(3, 3))
        else:
            try:
                return validate_array(
                    transform,  # type: ignore[arg-type]
                    must_have_shape=(3, 3),
                    must_be_finite=must_be_finite,
                    name=name,
                )
            except ValueError:
                pass
            except TypeError:
                try:
                    from scipy.spatial.transform import Rotation
                except ModuleNotFoundError:  # pragma: no cover
                    pass
                else:
                    if isinstance(transform, Rotation):
                        # Get matrix output and try validating again
                        return validate_transform3x3(
                            transform.as_matrix(), must_be_finite=must_be_finite, name=name
                        )
    
        error_message = (
            f'Input transform must be one of:\n'
            '\tvtkMatrix3x3\n'
            '\t3x3 np.ndarray\n'
            '\tscipy.spatial.transform.Rotation\n'
            f'Got {reprlib.repr(transform)} with type {type(transform)} instead.'
        )
>       raise TypeError(error_message)
E       TypeError: Input transform must be one of:
E       	vtkMatrix3x3
E       	3x3 np.ndarray
E       	scipy.spatial.transform.Rotation
E       Got array([[nan, ....,  0.,  1.]]) with type <class 'numpy.ndarray'> instead.

..../test-api/lib/python3.10.../core/_validation/validate.py:722: TypeError

During handling of the above exception, another exception occurred:

line1 = [[0.0, 0.0, 0.0], [1.0, 0.0, 0.0]]
line2 = [[2.0, 1.0, 0.0], [0.0, 1.0, 0.0]]

    @pytest.mark.parametrize(("line1", "line2"), plane_lines_data)
    def test_create_plane_from_lines(line1, line2):
        plane = create_plane_from_lines(
            line1() if callable(line1) else line1, line2() if callable(line2) else line2
        )
>       plane.plot()

tests/test_geometry.py:234: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
..../test-api/lib/python3.10.../dpf/core/geometry.py:451: in plot
    pl.add_plane(self)
..../test-api/lib/python3.10.../dpf/core/plotter.py:500: in add_plane
    self._internal_plotter.add_plane(plane, field, **kwargs)
..../test-api/lib/python3.10.../dpf/core/plotter.py:116: in add_plane
    plane_plot = pv.Plane(
..../test-api/lib/python3.10.../core/utilities/geometric_objects.py:1073: in Plane
    translate(surf, center, direction)
..../test-api/lib/python3.10.../core/utilities/geometric_sources.py:85: in translate
    surf.transform(trans, inplace=True)
..../test-api/lib/python3.10.../core/filters/data_object.py:195: in transform
    t = trans if isinstance(trans, Transform) else Transform(trans)
..../test-api/lib/python3.10.../core/utilities/transform.py:269: in __init__
    self.matrix = trans  # type: ignore[assignment]
..../test-api/lib/python3.10.../core/utilities/transform.py:1382: in matrix
    self.compose(trans)
..../test-api/lib/python3.10.../core/utilities/transform.py:1335: in compose
    array = _validation.validate_transform4x4(
..../test-api/lib/python3.10.../core/_validation/validate.py:628: in validate_transform4x4
    arr = validate_array(
..../test-api/lib/python3.10.../core/_validation/validate.py:337: in validate_array
    check_finite(arr_out, name=name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

array = array([[nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [ 0.,  0.,  0.,  1.]])

    def check_finite(array: _ArrayLikeOrScalar[NumberType], /, *, name: str = 'Array') -> None:
        """Check if an array has finite values, i.e. no NaN or Inf values.
    
        Parameters
        ----------
        array : float | ArrayLike[float]
            Number or array to check.
    
        name : str, default: "Array"
            Variable name to use in the error messages if any are raised.
    
        Raises
        ------
        ValueError
            If the array has any ``Inf`` or ``NaN`` values.
    
        See Also
        --------
        check_real
    
        Examples
        --------
        Check if an array's values are finite.
    
        >>> from pyvista import _validation
        >>> _validation.check_finite([1, 2, 3])
    
        """
        array = array if isinstance(array, np.ndarray) else _cast_to_numpy(array)
        if not np.all(np.isfinite(array)):
            msg = f'{name} must have finite values.'
>           raise ValueError(msg)
E           ValueError: matrix must have finite values.

..../test-api/lib/python3.10.../core/_validation/check.py:307: ValueError
tests/test_geometry.py::test_create_plane_from_lines[line10-line20]
Stack Traces | 0.453s run time
transform = array([[nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [ 0.,  0.,  0.,  1.]])

    def validate_transform4x4(
        transform: TransformLike, /, *, must_be_finite: bool = True, name: str = 'Transform'
    ) -> NumpyArray[float]:
        """Validate transform-like input as a 4x4 ndarray.
    
        Parameters
        ----------
        transform : TransformLike
            Transformation matrix as a 3x3 or 4x4 array, 3x3 or 4x4 vtkMatrix, vtkTransform,
            or a SciPy ``Rotation`` instance. If the input is 3x3, the array is padded using
            a 4x4 identity matrix.
    
        must_be_finite : bool, default: True
            :func:`Check <pyvista.core._validation.check.check_finite>`
            if all elements of the array are finite, i.e. not ``infinity``
            and not Not a Number (``NaN``).
    
        name : str, default: "Transform"
            Variable name to use in the error messages if any of the
            validation checks fail.
    
        Returns
        -------
        np.ndarray
            Validated 4x4 transformation matrix.
    
        See Also
        --------
        validate_transform3x3
            Similar function for 3x3 transforms.
    
        validate_array
            Generic array validation function.
    
        """
        check_string(name, name='Name')
        try:
            arr = np.eye(4)  # initialize
>           arr[:3, :3] = validate_transform3x3(transform, must_be_finite=must_be_finite, name=name)

..../test-api/lib/python3.10.../core/_validation/validate.py:620: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

transform = array([[nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [ 0.,  0.,  0.,  1.]])

    def validate_transform3x3(
        transform: TransformLike, /, *, must_be_finite: bool = True, name: str = 'Transform'
    ):
        """Validate transform-like input as a 3x3 ndarray.
    
        Parameters
        ----------
        transform : RotationLike
            Transformation matrix as a 3x3 array, vtk matrix, or a SciPy ``Rotation``
            instance.
    
            .. note::
    
               Although ``RotationLike`` inputs are accepted, no checks are done
               to verify that the transformation is actually a rotation.
               Therefore, any 3x3 transformation is acceptable.
    
        must_be_finite : bool, default: True
            :func:`Check <pyvista.core._validation.check.check_finite>`
            if all elements of the array are finite, i.e. not ``infinity``
            and not Not a Number (``NaN``).
    
        name : str, default: "Transform"
            Variable name to use in the error messages if any of the
            validation checks fail.
    
        Returns
        -------
        np.ndarray
            Validated 3x3 transformation matrix.
    
        See Also
        --------
        validate_transform4x4
            Similar function for 4x4 transforms.
    
        validate_array
            Generic array validation function.
    
        """
        check_string(name, name='Name')
        if isinstance(transform, vtkMatrix3x3):
            return _array_from_vtkmatrix(transform, shape=(3, 3))
        else:
            try:
                return validate_array(
                    transform,  # type: ignore[arg-type]
                    must_have_shape=(3, 3),
                    must_be_finite=must_be_finite,
                    name=name,
                )
            except ValueError:
                pass
            except TypeError:
                try:
                    from scipy.spatial.transform import Rotation
                except ModuleNotFoundError:  # pragma: no cover
                    pass
                else:
                    if isinstance(transform, Rotation):
                        # Get matrix output and try validating again
                        return validate_transform3x3(
                            transform.as_matrix(), must_be_finite=must_be_finite, name=name
                        )
    
        error_message = (
            f'Input transform must be one of:\n'
            '\tvtkMatrix3x3\n'
            '\t3x3 np.ndarray\n'
            '\tscipy.spatial.transform.Rotation\n'
            f'Got {reprlib.repr(transform)} with type {type(transform)} instead.'
        )
>       raise TypeError(error_message)
E       TypeError: Input transform must be one of:
E       	vtkMatrix3x3
E       	3x3 np.ndarray
E       	scipy.spatial.transform.Rotation
E       Got array([[nan, ....,  0.,  1.]]) with type <class 'numpy.ndarray'> instead.

..../test-api/lib/python3.10.../core/_validation/validate.py:722: TypeError

During handling of the above exception, another exception occurred:

line1 = [[0.0, 0.0, 0.0], [1.0, 0.0, 0.0]]
line2 = [[2.0, 1.0, 0.0], [0.0, 1.0, 0.0]]

    @pytest.mark.parametrize(("line1", "line2"), plane_lines_data)
    def test_create_plane_from_lines(line1, line2):
        plane = create_plane_from_lines(
            line1() if callable(line1) else line1, line2() if callable(line2) else line2
        )
>       plane.plot()

tests/test_geometry.py:234: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
..../test-api/lib/python3.10.../dpf/core/geometry.py:451: in plot
    pl.add_plane(self)
..../test-api/lib/python3.10.../dpf/core/plotter.py:500: in add_plane
    self._internal_plotter.add_plane(plane, field, **kwargs)
..../test-api/lib/python3.10.../dpf/core/plotter.py:116: in add_plane
    plane_plot = pv.Plane(
..../test-api/lib/python3.10.../core/utilities/geometric_objects.py:1073: in Plane
    translate(surf, center, direction)
..../test-api/lib/python3.10.../core/utilities/geometric_sources.py:85: in translate
    surf.transform(trans, inplace=True)
..../test-api/lib/python3.10.../core/filters/data_object.py:195: in transform
    t = trans if isinstance(trans, Transform) else Transform(trans)
..../test-api/lib/python3.10.../core/utilities/transform.py:269: in __init__
    self.matrix = trans  # type: ignore[assignment]
..../test-api/lib/python3.10.../core/utilities/transform.py:1382: in matrix
    self.compose(trans)
..../test-api/lib/python3.10.../core/utilities/transform.py:1335: in compose
    array = _validation.validate_transform4x4(
..../test-api/lib/python3.10.../core/_validation/validate.py:628: in validate_transform4x4
    arr = validate_array(
..../test-api/lib/python3.10.../core/_validation/validate.py:337: in validate_array
    check_finite(arr_out, name=name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

array = array([[nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [nan, nan, nan,  0.],
       [ 0.,  0.,  0.,  1.]])

    def check_finite(array: _ArrayLikeOrScalar[NumberType], /, *, name: str = 'Array') -> None:
        """Check if an array has finite values, i.e. no NaN or Inf values.
    
        Parameters
        ----------
        array : float | ArrayLike[float]
            Number or array to check.
    
        name : str, default: "Array"
            Variable name to use in the error messages if any are raised.
    
        Raises
        ------
        ValueError
            If the array has any ``Inf`` or ``NaN`` values.
    
        See Also
        --------
        check_real
    
        Examples
        --------
        Check if an array's values are finite.
    
        >>> from pyvista import _validation
        >>> _validation.check_finite([1, 2, 3])
    
        """
        array = array if isinstance(array, np.ndarray) else _cast_to_numpy(array)
        if not np.all(np.isfinite(array)):
            msg = f'{name} must have finite values.'
>           raise ValueError(msg)
E           ValueError: matrix must have finite values.

..../test-api/lib/python3.10.../core/_validation/check.py:307: ValueError

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@PProfizi
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Related to package requirements maintenance Repository structure maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant