(args, cfg)
| 27 | |
| 28 | |
| 29 | def print_args(args, cfg): |
| 30 | print("***************") |
| 31 | print("** Arguments **") |
| 32 | print("***************") |
| 33 | optkeys = list(args.__dict__.keys()) |
| 34 | optkeys.sort() |
| 35 | for key in optkeys: |
| 36 | print("{}: {}".format(key, args.__dict__[key])) |
| 37 | print("************") |
| 38 | print("** Config **") |
| 39 | print("************") |
| 40 | print(cfg) |
| 41 | |
| 42 | |
| 43 | def reset_cfg(cfg, args): |