Skip to content

Commit

Permalink
chore: improve assert message context
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraney authored and hellkite500 committed Aug 21, 2024
1 parent 9a9e111 commit 5e28b09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/ngen_cal/src/ngen/cal/ngen_hooks/ngen_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def ngen_cal_model_configure(self, config: ModelExec) -> None:
# this will only execute if all other hooks return None (or they don't exist)
@hookimpl(specname="ngen_cal_model_output", trylast=True)
def get_output(self, id: str) -> pd.Series | None:
assert self._ngen_realization is not None, "ngen realization required"
assert (
self._ngen_realization is not None
), "ngen realization required; ensure `ngen_cal_model_configure` was called and the plugin was properly configured"

if not self._output_file.exists():
print(
Expand Down

0 comments on commit 5e28b09

Please sign in to comment.