From c580d2dde9ece11b1e928accec47fd47700ff675 Mon Sep 17 00:00:00 2001 From: Harshad Hegde Date: Mon, 19 Aug 2024 14:52:44 -0500 Subject: [PATCH] formatted --- .../implementations/semsimian/semsimian_implementation.py | 4 ++-- tests/test_cli.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/oaklib/implementations/semsimian/semsimian_implementation.py b/src/oaklib/implementations/semsimian/semsimian_implementation.py index bb285f8e9..377228cb7 100644 --- a/src/oaklib/implementations/semsimian/semsimian_implementation.py +++ b/src/oaklib/implementations/semsimian/semsimian_implementation.py @@ -229,7 +229,7 @@ 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 @@ -237,7 +237,7 @@ def all_by_all_pairwise_similarity( 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( diff --git a/tests/test_cli.py b/tests/test_cli.py index 00f33bb1c..1cb2d9af0 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -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: