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

Add test for all_by_all_pairwise_similarity() in semsimian using custom IC map #801

Merged
merged 4 commits into from
Aug 21, 2024

Conversation

justaddcoffee
Copy link
Collaborator

@hrshdhgd
Copy link
Collaborator

You may want to lint it tox -e format

raise AssertionError("SemanticSimilarityInterface not implemented")
entities = [VACUOLE, ENDOMEMBRANE_SYSTEM]

sim = (adapter.all_by_all_pairwise_similarity(entities, entities, predicates=self.predicates))
Copy link
Collaborator

@cmungall cmungall Aug 21, 2024

Choose a reason for hiding this comment

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

not related to this PR but the way this test module uses object variables for constants is a little unusual

sim = (adapter.all_by_all_pairwise_similarity(entities, entities, predicates=self.predicates))

for s in sim:
if s is not None:
Copy link
Collaborator

Choose a reason for hiding this comment

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

super pedantic: I much prefer doing an initial assert s is not None, then no need for the indented if/else clause.

@hrshdhgd hrshdhgd merged commit c93a9dc into main Aug 21, 2024
9 checks passed
@justaddcoffee justaddcoffee deleted the add_test_for_all_by_all_custom_ic branch August 21, 2024 18:05
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.

3 participants