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

Fix domain equality check #1866

Merged
merged 3 commits into from
Nov 15, 2023
Merged

Fix domain equality check #1866

merged 3 commits into from
Nov 15, 2023

Conversation

jp-dark
Copy link
Contributor

@jp-dark jp-dark commented Nov 14, 2023

Fixes:

  • Add checks for matching filters and variable length in Dim.__eq__.
  • Fix bug where error is thrown when using Domain.__eq__ on a non-integral sparse domain.
  • Fix bug where filters are dropped from dimensions in a domain with all anonymous dimensions.

* Remove shape check: The shape is already verifies when checking all
dimensions are equal. Because the shape is not always well defined,
this was failing on homogenous non-integer/datetime domains.

* While testing the above change, an error where the filters were not
 being copied when adding all anonymous dimensions to a domain was
 caught and fixed as well.
@jp-dark jp-dark requested a review from ihnorton November 14, 2023 20:23
@jp-dark
Copy link
Contributor Author

jp-dark commented Nov 14, 2023

[sc-36840] [sc-37022]

Copy link

Copy link
Member

@ihnorton ihnorton left a comment

Choose a reason for hiding this comment

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

Thanks!

@ihnorton ihnorton merged commit c1db81c into dev Nov 15, 2023
36 checks passed
@ihnorton ihnorton deleted the jpd/domain-dim-eq branch November 15, 2023 13:59
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.

2 participants