Skip to content

Commit 4cd7819

Browse files
committed
adjust to epic
1 parent cfbd1b3 commit 4cd7819

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed

src/vivarium_testing_utils/automated_validation/calculations.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
def process_raw_data(
55
input_data_type: str, raw_data: pd.DataFrame, measure: str
66
) -> pd.DataFrame:
7-
pass
7+
raise NotImplementedError
88

99

1010
def compute_metric(
1111
input_data_type: str, intermediate_data: pd.DataFrame, measure: str
1212
) -> pd.Series:
13-
pass
13+
raise NotImplementedError
1414

1515

1616
def ratio(numerator, denominator):
17-
pass
17+
raise NotImplementedError
1818

1919

2020
def aggregate(data: pd.DataFrame, groupby_cols: list[str]) -> pd.DataFrame:
21-
pass
21+
raise NotImplementedError
2222

2323

2424
def linear_combination(coefficients: list[float], data: pd.DataFrame) -> pd.Series:
25-
pass
25+
raise NotImplementedError

src/vivarium_testing_utils/automated_validation/comparison.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ def __init__(
2020
# you need to marginalize out the non-stratified columns as well
2121

2222
def verify(self, stratifications: list[str]):
23-
pass
23+
raise NotImplementedError
2424

2525
def summarize(self, stratifications: list[str]):
26-
pass
26+
raise NotImplementedError
2727

2828
def heads(self, stratifications: list[str]):
29-
pass
29+
raise NotImplementedError

src/vivarium_testing_utils/automated_validation/data_loader.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def sim_outputs(self) -> list[str]:
4444
return [str(f.stem) for f in self.sim_output_dir.glob("*.parquet")]
4545

4646
def artifact_keys(self) -> list[str]:
47-
pass
47+
raise NotImplementedError
4848

4949
def load_from_sim(self, dataset_key: str) -> pd.DataFrame:
5050
"""Load the data from the simulation output directory and set the non-value columns as indices."""
@@ -55,10 +55,10 @@ def load_from_sim(self, dataset_key: str) -> pd.DataFrame:
5555
return sim_data
5656

5757
def load_from_artifact(self, dataset_key: str) -> pd.DataFrame:
58-
pass
58+
raise NotImplementedError
5959

6060
def load_from_gbd(self, dataset_key: str) -> pd.DataFrame:
61-
pass
61+
raise NotImplementedError
6262

6363
def load_custom(self, dataset_key: str) -> pd.DataFrame:
64-
pass
64+
raise NotImplementedError

src/vivarium_testing_utils/automated_validation/interface.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ def plot_comparison(self, comparison_key: str, type: str, kwargs):
3535
return plot_utils.plot_comparison(self.comparisons[comparison_key], type, kwargs)
3636

3737
def generate_comparisons(self):
38-
pass
38+
raise NotImplementedError
3939

4040
def verify_all(self):
4141
for comparison in self.comparisons.values():
4242
comparison.verify()
4343

4444
def plot_all(self):
45-
pass
45+
raise NotImplementedError
4646

4747
def get_results(self, verbose: bool = False):
48-
pass
48+
raise NotImplementedError

src/vivarium_testing_utils/automated_validation/plot_utils.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,28 @@
44

55

66
def plot_comparison(comparison: Comparison, type: str, kwargs):
7-
pass
7+
raise NotImplementedError
88

99

1010
def plot_data(dataset: pd.DataFrame, type: str, kwargs):
11-
pass
11+
raise NotImplementedError
1212

1313

1414
def line_plot(comparison: Comparison, x_axis: str, stratifications: list[str]):
15-
pass
15+
raise NotImplementedError
1616

1717

1818
def bar_plot(comparison: Comparison, x_axis: str, stratifications: list[str]):
19-
pass
19+
raise NotImplementedError
2020

2121

2222
def box_plot(comparison: Comparison, cat: str, stratifications: list[str]):
23-
pass
23+
raise NotImplementedError
2424

2525

2626
def heatmap(comparison: Comparison, row: str, col: str):
27-
pass
27+
raise NotImplementedError
2828

2929

3030
def save_plot(fig, name, format):
31-
pass
31+
raise NotImplementedError

0 commit comments

Comments
 (0)