syntax and flake8

This commit is contained in:
Peter Zhokhov
2018-10-30 09:47:39 -07:00
parent 72aa2f1251
commit d00f3bce34
2 changed files with 2 additions and 2 deletions

View File

@@ -365,7 +365,7 @@ def learn(*,
lrlocal = (seg["ep_lens"], seg["ep_rets"]) # local values
if MPI is not None:
listoflrpairs = MPI.COMM_WORLD.allgather(lrlocal) # list of tuples
else
else:
listoflrpairs = [lrlocal]
lens, rews = map(flatten_lists, zip(*listoflrpairs))