Commit 26c5f12a authored by Raul Puri's avatar Raul Puri
Browse files

flushed printing

parent 954f0725
......@@ -53,10 +53,11 @@ def parse_args(extra_args_provider=None, defaults={},
# arguments that are passed to the program. We check this by
# ensuring the arg is set to None.
if getattr(args, key) is not None:
if args.rank <= 0:
if args.rank == 0:
print('WARNING: overriding default arguments for {key}:{v} \
with {key}:{v2}'.format(key=key, v=defaults[key],
v2=getattr(args, key))
v2=getattr(args, key)),
flush=True)
else:
setattr(args, key, defaults[key])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment