Skip to content
This repository was archived by the owner on May 21, 2022. It is now read-only.

Commit 20dd90b

Browse files
committed
Improve test output
1 parent d16ea68 commit 20dd90b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/runtests.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ end
5353
# check they all work - no errors == no worries
5454
println("------------------------------ Check envs load ------------------------------")
5555
for (i, env) in enumerate(envs)
56-
@show env.name env.pyenv a = rand(env.actions)|>OpenAIGym.pyaction PyObject(a)|>pytypeof
56+
a = rand(env.actions) |> OpenAIGym.pyaction
57+
action_type = a |> PyObject |> pytypeof
58+
println("env.pyenv: $(env.pyenv) action_type: $action_type ex: $a")
5759
time_steps(env, 1)
5860
@test !ispynull(env.pyenv)
5961
println("------------------------------")
@@ -65,8 +67,8 @@ end
6567
for env in envs
6668
num_eps = eps2trial[env]
6769
steps, t = time_steps(env, num_eps)
68-
@show env.name num_eps t steps
69-
println("microsecs/step (lower is better): ", t*1e6/steps)
70+
println("env.pyenv: $(env.pyenv) num_eps: $num_eps t: $t steps: $steps")
71+
println("microsecs/step (lower is better): $(t*1e6/steps)")
7072
println("------------------------------")
7173
end
7274
println("------------------------------ End Julia Speed Check ------------------------------\n")

0 commit comments

Comments
 (0)