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

REGR: fix __eq__ to not ignore z values #1829

Merged
merged 15 commits into from
Jul 22, 2023

Conversation

jorisvandenbossche
Copy link
Member

Closes #1732

Broken off from #1760, to just restore the previous behaviour (using the previous implementaiton) and already add the more extensive tests that I wrote for that PR. This way, the other PR can focus more on the API change.

Copy link
Member

@mwtoews mwtoews left a comment

Choose a reason for hiding this comment

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

This looks good! I haven't had a chance to test this PR locally, but the changes and tests all look good. Only a few minor remarks to consider.

Comment on lines +70 to +81
all_types_z = (
point_z,
line_string_z,
polygon_z,
multi_point_z,
multi_line_string_z,
multi_polygon_z,
polygon_with_hole_z,
geometry_collection_z,
empty_point_z,
empty_line_string_z,
)
Copy link
Member

Choose a reason for hiding this comment

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

I have a draft PR with some very similar items, but I'll work with this version to start with.

shapely/geometry/base.py Show resolved Hide resolved
shapely/geometry/base.py Outdated Show resolved Hide resolved
@jorisvandenbossche jorisvandenbossche added this to the 2.0.2 milestone Jul 15, 2023
@coveralls
Copy link

coveralls commented Jul 15, 2023

Pull Request Test Coverage Report for Build 5630011376

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 33 of 33 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.5%) to 87.759%

Totals Coverage Status
Change from base Build 5581545777: 0.5%
Covered Lines: 2545
Relevant Lines: 2900

💛 - Coveralls

@jorisvandenbossche jorisvandenbossche merged commit 70915c9 into shapely:main Jul 22, 2023
23 checks passed
@jorisvandenbossche jorisvandenbossche deleted the regr-equal-z branch July 22, 2023 10:36
jorisvandenbossche added a commit to jorisvandenbossche/shapely that referenced this pull request Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

REGR: equality (__eq__) now ignores the z dimension
3 participants