Skip to content

Commit

Permalink
fix: adding spaces to comparition == operators
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkordyzon committed May 10, 2019
1 parent 97c8c34 commit 802511e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spinup/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -112,15 +112,15 @@ 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]

# 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']
Expand Down

0 comments on commit 802511e

Please sign in to comment.