diff --git a/spinup/run.py b/spinup/run.py index 0482cb506..e3ecfabfd 100644 --- a/spinup/run.py +++ b/spinup/run.py @@ -70,7 +70,7 @@ def process(arg): # Assume such flags indicate that a boolean parameter should have # value True. for k,v in arg_dict.items(): - if len(v)==0: + if len(v) == 0: v.append(True) # Third pass: check for user-supplied shorthands, where a key has @@ -112,7 +112,7 @@ def process(arg): for k in RUN_KEYS: if k in arg_dict: val = arg_dict[k] - assert len(val)==1, \ + assert len(val) == 1, \ friendly_err("You can only provide one value for %s."%k) run_kwargs[k] = val[0] del arg_dict[k] @@ -120,7 +120,7 @@ def process(arg): # Determine experiment name. If not given by user, will be determined # by the algorithm name. if 'exp_name' in arg_dict: - assert len(arg_dict['exp_name'])==1, \ + assert len(arg_dict['exp_name']) == 1, \ friendly_err("You can only provide one value for exp_name.") exp_name = arg_dict['exp_name'][0] del arg_dict['exp_name']