ARS icon indicating copy to clipboard operation
ARS copied to clipboard

Fixed error of run_policy.py with python 3.6

Open kirk86 opened this issue 6 years ago • 1 comments

Fixed error of run_policy.py with python 3.6, lin_policy.items() returns ItemsView in python 3.6, converting to list is not allowed, thus one can use lin_policy.f.arr_0 or lin_policy[lin_policy.files[0]].

kirk86 avatar Oct 09 '18 16:10 kirk86

It is not hard to solve. I added the list casting to the lin_policy object (around line 23) and then it worked:

lin_policy = np.load(args.expert_policy_file)
lin_policy = list(lin_policy.items())
lin_policy = lin_policy[0][1]

dryanguasr avatar May 02 '19 02:05 dryanguasr