Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jGaboardi
Copy link
Member

@jGaboardi jGaboardi commented May 20, 2025

@jGaboardi
Copy link
Member Author

This failure appear to be varying behavior in an upstream dependency starting in the Python 3.9 environment

__________ TestEuclideanNeighbors.test_euclidean_neighbors_centroids ___________
[gw2] linux -- Python 3.10.17 /home/runner/micromamba/envs/access_310/bin/python3.10

self = <test_euclidean.TestEuclideanNeighbors testMethod=test_euclidean_neighbors_centroids>

    def test_euclidean_neighbors_centroids(self):
        self.model.create_euclidean_distance_neighbors(
            name="euclidian", threshold=2, centroid=True
        )
        actual1 = self.model.neighbor_cost_df["euclidian"][0]
        actual2 = self.model.neighbor_cost_df["euclidian"][2]
>       self.assertAlmostEqual(actual1, 1)
E       AssertionError: np.float64(0.0) != 1 within 7 places (np.float64(1.0) difference)

access/tests/test_euclidean.py:131: AssertionError

Copy link
Member

@martinfleis martinfleis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual failure can be done as a follow-up.

@jGaboardi jGaboardi merged commit a931c48 into pysal:main May 20, 2025
2 of 6 checks passed
@jGaboardi jGaboardi deleted the GH55_fix_import_errors_in_tests branch May 20, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImportError: cannot import name 'Access' from 'access' (unknown location)

2 participants