Skip to content

Support for almost equal like equality #988

Open
wasade wants to merge 6 commits into
biocore:masterfrom
wasade:almost_equal
Open

Support for almost equal like equality #988
wasade wants to merge 6 commits into
biocore:masterfrom
wasade:almost_equal

Conversation

@wasade
Copy link
Copy Markdown
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
Copy Markdown

@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!

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

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
Copy Markdown
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