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

Support for almost equal like equality #988

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

wasade
Copy link
Member

@wasade wasade commented Dec 3, 2024

Fixes #983, partially addresses #982.

Note that error checking for nan is coming in a separate PR.

cc @AmandaBirmingham

Copy link

@AmandaBirmingham AmandaBirmingham left a comment

Choose a reason for hiding this comment

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

yay!

biom/table.py Outdated
@@ -1879,19 +1927,10 @@ def _data_equality(self, other):
necessary before performing the final comparison.

Choose a reason for hiding this comment

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

Are all these docstring comments ("Matrices are equal iff the following items are equal ") still appropriate to this particular method? I'm wondering if they would make more sense on __eq__ or with some of them going onto _data_equality_meta.

Copy link
Member Author

Choose a reason for hiding this comment

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

This particular method, _data_equality is called on __eq__ and should not exhibit different semantics from prior versions. However, I agree that they could be shuffled to more precise locations -- thanks! I'll do that in a moment

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.

Support assertAlmostEqual()
2 participants