Skip to content

Commit

Permalink
Raise 'from e' with errors in eval/predict/train/frame_classification…
Browse files Browse the repository at this point in the history
… modules
  • Loading branch information
NickleDave committed May 5, 2024
1 parent 84c316b commit bc0b487
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/vak/eval/frame_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def eval_frame_classification_model(
raise KeyError(
f"The `dataset_config` for frame classification model '{model_name}' must include a 'params' sub-table "
f"that sets a value for 'window_size', but received a `dataset_config` that did not:\n{dataset_config}"
)
) from e
transform_params = {
"spect_standardizer": spect_standardizer,
"window_size": window_size,
Expand Down
2 changes: 1 addition & 1 deletion src/vak/predict/frame_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def predict_with_frame_classification_model(
raise KeyError(
f"The `dataset_config` for frame classification model '{model_name}' must include a 'params' sub-table "
f"that sets a value for 'window_size', but received a `dataset_config` that did not:\n{dataset_config}"
)
) from e
transform_params = {
"spect_standardizer": spect_standardizer,
"window_size": window_size,
Expand Down
2 changes: 1 addition & 1 deletion src/vak/train/frame_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def train_frame_classification_model(
raise KeyError(
f"The `dataset_config` for frame classification model '{model_name}' must include a 'params' sub-table "
f"that sets a value for 'window_size', but received a `dataset_config` that did not:\n{dataset_config}"
)
) from e
transform_kwargs = {
"spect_standardizer": spect_standardizer,
"window_size": window_size,
Expand Down

0 comments on commit bc0b487

Please sign in to comment.