Skip to content

Commit

Permalink
better asser message
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMay committed Dec 8, 2023
1 parent 398e972 commit e93979f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mltb2/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def load_prostate() -> Tuple[pd.Series, pd.DataFrame]:
elif "cancer" in label:
labels.append(1)
else:
assert False, "This must not happen!"
assert False, f"This must not happen! label: {label}"
label_series = pd.Series(labels)
assert len(label_series) == 102

Expand Down Expand Up @@ -195,7 +195,7 @@ def load_leukemia_big() -> Tuple[pd.Series, pd.DataFrame]:
elif "AML" in label:
labels.append(1)
else:
assert False, "This must not happen!"
assert False, f"This must not happen! label: {label}"
label_series = pd.Series(labels)
assert len(label_series) == 72

Expand Down

0 comments on commit e93979f

Please sign in to comment.