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

updating test_nearest_neighbor_distances() #518

Merged
merged 1 commit into from Sep 7, 2020

Conversation

jGaboardi
Copy link
Member

This PR updates test_nearest_neighbor_distances() to account for a VisibleDeprecationWarning in numpy.

spaghetti/tests/test_api_network.py::TestNetworkPointPattern::test_nearest_neighbor_distances
spaghetti/tests/test_dev_network.py::TestNetworkPointPattern::test_nearest_neighbor_distances
  /Users/user/spaghetti/spaghetti/tests/network_unittest_classes.py:638: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
    nndv1 = numpy.array(list(nnd2.values()))[:, 1].astype(float)

spaghetti/tests/test_api_network.py::TestNetworkPointPattern::test_nearest_neighbor_distances
spaghetti/tests/test_dev_network.py::TestNetworkPointPattern::test_nearest_neighbor_distances
  /Users/user/spaghetti/spaghetti/tests/network_unittest_classes.py:638: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
    nndv2 = numpy.array(list(nnd2.values()))[:, 1].astype(float)

@jGaboardi jGaboardi self-assigned this Sep 7, 2020
@jGaboardi jGaboardi added this to the Release v1.6.0 milestone Sep 7, 2020
@jGaboardi jGaboardi added this to Done in v1.6.0 Sep 7, 2020
@jGaboardi jGaboardi moved this from Done to In progress in v1.6.0 Sep 7, 2020
@jGaboardi jGaboardi merged commit aff6796 into pysal:master Sep 7, 2020
@jGaboardi jGaboardi deleted the numpy_deprec_warn branch September 7, 2020 23:46
@jGaboardi jGaboardi moved this from In progress to Done in v1.6.0 Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v1.6.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant