diff --git a/ci/envs/311-dev.yaml b/ci/envs/311-dev.yaml index 3f78000..25d7996 100644 --- a/ci/envs/311-dev.yaml +++ b/ci/envs/311-dev.yaml @@ -3,14 +3,12 @@ channels: - conda-forge dependencies: - python=3.11 - - scipy - numpy - pandas - matplotlib - libpysal - py-opencv # tests - - scikit-learn - shapely - pyproj - fiona @@ -19,6 +17,9 @@ dependencies: - codecov - pip - pip: + - --pre --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --extra-index-url https://pypi.org/simple - opencv-contrib-python - git+https://github.com/geopandas/geopandas.git - git+https://github.com/pysal/libpysal.git + - scipy + - scikit-learn diff --git a/pointpats/geometry.py b/pointpats/geometry.py index 92eb5e3..96b9adb 100644 --- a/pointpats/geometry.py +++ b/pointpats/geometry.py @@ -310,7 +310,7 @@ def build_best_tree(coordinates, metric): from sklearn.neighbors import KDTree, BallTree from packaging.version import Version - if Version(sklearn.__version__) >= Version("1.3.0"): + if Version(sklearn.__version__) == Version("1.3.0"): kdtree_valid_metrics = KDTree.valid_metrics() balltree_valid_metrics = BallTree.valid_metrics() else: