daavoo / pyntcloud

pyntcloud is a Python library for working with 3D point clouds.
http://pyntcloud.readthedocs.io
MIT License
1.42k stars 224 forks source link

Numpy 2.0 error #360

Open pwichmann opened 3 months ago

pwichmann commented 3 months ago

Describe the bug When trying to plot a pyntcloud (pyntcloud 0.3.1), there is an attribute error. AttributeError: ptp was removed from the ndarray class in NumPy 2.0. Use np.ptp(arr, ...) instead.

Error thrown by matplotlib_backend (line 25): ptp = cloud.xyz.ptp()

To Reproduce Steps to reproduce the behavior:

  1. Use NumPy 2.0
  2. Try to plot() a pyntcloud