another opt fix
@@ -287,6 +287,9 @@ def load_agent_module(opt):
print("[ warning: overriding opt['" + str(k) + "'] to " + str(v) +
" (previously:" + str(str(new_opt.get(k, None))) + ") ]")
new_opt[k] = v
+ for k, v in opt.items():
+ if k not in new_opt:
+ new_opt[k] = v
new_opt['model_file'] = model_file
model_class = get_agent_module(new_opt['model'])
return model_class(new_opt)
