mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 09:13:01 +00:00
train_predict: add error message for parrams.json not found
This commit is contained in:
parent
e519b0adb3
commit
0894bd09e8
1 changed files with 2 additions and 0 deletions
|
@ -40,6 +40,8 @@ def run(args):
|
|||
|
||||
if (not hasattr(args, "params")) or args.params == None:
|
||||
args.params = find_paramsjson(args.checkpoint)
|
||||
if args.params == None:
|
||||
logger.error("Error: Failed to find params.json. Please ensure it's either in the same directory as the checkpoint or 1 level above")
|
||||
if (not hasattr(args, "read_multiplier")) or args.read_multiplier == None:
|
||||
args.read_multiplier = 0
|
||||
if (not hasattr(args, "records_per_file")) or args.records_per_file == None:
|
||||
|
|
Loading…
Reference in a new issue