We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b74a0f2 commit 8dba541Copy full SHA for 8dba541
src/weathergen/__init__.py
@@ -93,7 +93,7 @@ def evaluate():
93
init_loggers()
94
95
# load config: if run_id is full path, it loads from there
96
- model_path = private_cf["model_path"] if hasattr(private_cf, "model_path") else "./models"
+ model_path = private_cf["model_path"] if "model_path" in private_cf.keys() else "./models"
97
cf = Config.load(args.run_id, args.epoch, model_path)
98
99
# add parameters from private (paths) config
0 commit comments