Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions neural_lam/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,12 @@ def setup_training_logger(datastore, args, run_name):
training_logger.log_hyperparams(
dict(training=vars(args), datastore=datastore._config)
)

return training_logger
return training_logger
else:
raise ValueError(
f"Unsupported logger type: {args.logger!r}. "
"Supported loggers are: 'wandb', 'mlflow'."
)
Comment on lines +544 to +548
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a unit test asserting that an unsupported args.logger value raises ValueError with a helpful message. There are already setup_training_logger tests in tests/test_cli.py, so extending coverage here will prevent regressions back to an UnboundLocalError/silent misconfiguration.

Copilot uses AI. Check for mistakes.


def inverse_softplus(x, beta=1, threshold=20):
Expand Down
Loading