tobac-project / tobac

Tracking and object-based analysis of clouds
BSD 3-Clause "New" or "Revised" License
99 stars 53 forks source link

Fix failing `test_transform_feature_points` due to depreciation of np.nonzero on zero-length arrays #444

Closed w-k-jones closed 6 days ago

w-k-jones commented 3 weeks ago

test_transform_feature_points and test_transform_feature_points_3D are failing due to np.nonzero being called on an empty array in line 817. I'll have a look at fixing this, as we should add a check that features are actually removed before calling this code.

We should also do a general check for depreciated functions in dependencies to avoid problems with tests in future

w-k-jones commented 6 days ago

Resolved by #451