We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 255824f commit 4bdc580Copy full SHA for 4bdc580
src/pyemd/emd.pyx
@@ -3,8 +3,6 @@
3
# distutils: language = c++
4
# emd.pyx
5
6
-from pkg_resources import parse_version
7
-
8
from libcpp.pair cimport pair
9
from libcpp.vector cimport vector
10
import cython
@@ -142,7 +140,7 @@ def euclidean_pairwise_distance_matrix(x):
142
140
143
141
144
# Use `np.histogram_bin_edges` if available (since NumPy version 1.15.0)
145
-if parse_version(np.__version__) >= parse_version('1.15.0'):
+if np.lib.NumpyVersion(np.__version__) >= np.lib.NumpyVersion('1.15.0'):
146
get_bins = np.histogram_bin_edges
147
else:
148
def get_bins(a, bins=10, **kwargs):
0 commit comments