Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Aug 19, 2024
1 parent 995669f commit c580d2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,15 @@ def all_by_all_pairwise_similarity(
iter(ancestor_set)
), # TODO: Change this: gets first element of the set
)

else:
sim = TermPairwiseSimilarity(
subject_id=term1_key, object_id=term2_key, ancestor_id=OWL_THING
)
sim.jaccard_similarity = jaccard if jaccard is not None else 0.0
sim.ancestor_information_content = resnik if resnik is not None else 0.0
sim.phenodigm_score = phenodigm_score if phenodigm_score is not None else 0.0

yield sim

def termset_pairwise_similarity(
Expand Down
4 changes: 3 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,9 @@ def test_annotate_file(self):
],
)
print("STDERR", result.stdout)
err = "\n".join([line for line in result.stderr.split("\n") if not line.startswith("WARNING")])
err = "\n".join(
[line for line in result.stderr.split("\n") if not line.startswith("WARNING")]
)
self.assertEqual("", err)
self.assertEqual(0, result.exit_code)
with open(outfile) as stream:
Expand Down

0 comments on commit c580d2d

Please sign in to comment.