Skip to content

Commit 1d05518

Browse files
patricktnastalbrja
authored andcommitted
Wrapper for Comparison methods (#37)
* add shunt for other comparison methods * basic untested sketch * big fixes * bug fix / rename * Revert "bug fix / rename" This reverts commit 9f048bd. * Revert "big fixes" This reverts commit 4cc09bb. * Revert "basic untested sketch" This reverts commit b3aae1f. * add skipped tests * add typing
1 parent e400f63 commit 1d05518

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/vivarium_testing_utils/automated_validation/interface.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ def add_comparison(
7474
def verify(self, comparison_key: str, stratifications: list[str] = []): # type: ignore[no-untyped-def]
7575
self.comparisons[comparison_key].verify(stratifications)
7676

77+
def summarize(self, comparison_key: str, stratifications: list[str] = []): # type: ignore[no-untyped-def]
78+
return self.comparisons[comparison_key].summarize(stratifications)
79+
80+
def heads(self, comparison_key: str, stratifications: list[str] = []): # type: ignore[no-untyped-def]
81+
self.comparisons[comparison_key].heads(stratifications)
82+
7783
def plot_comparison(self, comparison_key: str, type: str, **kwargs): # type: ignore[no-untyped-def]
7884
return plot_utils.plot_comparison(self.comparisons[comparison_key], type, kwargs)
7985

tests/automated_validation/test_interface.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,15 @@ def test_add_comparison(
8181
)
8282
assert comparison.test_data.equals(expected_ratio_data)
8383
assert comparison.reference_data.equals(artifact_disease_incidence)
84+
85+
86+
@pytest.mark.skip("Not implemented")
87+
def test_summarize() -> None:
88+
"""Ensure that we can summarize a comparison"""
89+
pass
90+
91+
92+
@pytest.mark.skip("Not implemented")
93+
def test_heads() -> None:
94+
"""Ensure that we can verify a comparison"""
95+
pass

0 commit comments

Comments
 (0)