Skip to content

Fix issue with expr-matches and tuples with numpy arrays#106

Merged
PhilReinhold merged 2 commits intomainfrom
fix/expr-matches-numpy-in-tuple
Feb 24, 2026
Merged

Fix issue with expr-matches and tuples with numpy arrays#106
PhilReinhold merged 2 commits intomainfrom
fix/expr-matches-numpy-in-tuple

Conversation

@PhilReinhold
Copy link
Copy Markdown
Collaborator

The expr_matches routine can produce a failure if numpy data is inside a tuple. Currently, tuples are compared by equality, and if the tuple contains a numpy array, this can result in numpy arrays being compared by equality, which produces an array rather than a bool.

Copy link
Copy Markdown
Contributor

@braised-babbage braised-babbage left a comment

Choose a reason for hiding this comment

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

Makes sense. Thanks for adding the tests.

@PhilReinhold PhilReinhold merged commit 54489c9 into main Feb 24, 2026
10 checks passed
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