We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0556b30 commit 78854d2Copy full SHA for 78854d2
2 files changed
src/semra/summarize.py
@@ -739,7 +739,7 @@ def plot_distribution(
739
import seaborn as sns
740
from matplotlib import pyplot as plt
741
742
- fig, ax = plt.subplots(figsize=(1 + len(self.distribution) * width_ratio, height))
+ _fig, ax = plt.subplots(figsize=(1 + len(self.distribution) * width_ratio, height))
743
sns.barplot(self.distribution, ax=ax)
744
745
for index, value in self.distribution.items():
tests/test_api.py
@@ -385,8 +385,8 @@ def test_get_many_to_many(self) -> None:
385
386
def test_filter_confidence(self) -> None:
387
"""Test filtering by confidence."""
388
- (a1, a2) = _get_references(2, prefix=PREFIX_A)
389
- (b1, b2) = _get_references(2, prefix=PREFIX_B)
+ (a1, _a2) = _get_references(2, prefix=PREFIX_A)
+ (b1, _b2) = _get_references(2, prefix=PREFIX_B)
390
m1 = Mapping(
391
subject=a1,
392
predicate=DB_XREF,
@@ -406,7 +406,7 @@ def test_filter_subsets(self) -> None:
406
"""Test filtering by subsets."""
407
a1, a2 = _get_references(2, prefix=PREFIX_A)
408
b1, b2 = _get_references(2, prefix=PREFIX_B)
409
- c1, c2 = _get_references(2, prefix=PREFIX_C)
+ c1, _c2 = _get_references(2, prefix=PREFIX_C)
410
ev = SimpleEvidence(confidence=0.95, mapping_set=MS)
411
m1 = Mapping(subject=a1, predicate=EXACT_MATCH, object=b1, evidence=[ev])
412
m2 = Mapping(subject=b1, predicate=EXACT_MATCH, object=a1, evidence=[ev])
0 commit comments