Skip to content

Commit 7d2fe1e

Browse files
committed
deploy: 2d903cc
1 parent 43ca3be commit 7d2fe1e

File tree

9 files changed

+1083
-351
lines changed

9 files changed

+1083
-351
lines changed

API/behavior/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3144,13 +3144,13 @@ <h2 id="ethopy.core.behavior.Behavior" class="doc doc-heading">
31443144
<span class="bp">self</span><span class="o">.</span><span class="n">response_queue</span><span class="p">:</span> <span class="n">Queue</span> <span class="o">=</span> <span class="n">Queue</span><span class="p">(</span><span class="n">maxsize</span><span class="o">=</span><span class="mi">4</span><span class="p">)</span>
31453145
<span class="bp">self</span><span class="o">.</span><span class="n">last_lick</span> <span class="o">=</span> <span class="kc">None</span>
31463146

3147-
<span class="bp">self</span><span class="o">.</span><span class="n">params</span> <span class="o">=</span> <span class="kc">None</span>
3147+
<span class="bp">self</span><span class="o">.</span><span class="n">session_params</span> <span class="o">=</span> <span class="kc">None</span>
31483148
<span class="bp">self</span><span class="o">.</span><span class="n">exp</span> <span class="o">=</span> <span class="kc">None</span>
31493149
<span class="bp">self</span><span class="o">.</span><span class="n">logger</span> <span class="o">=</span> <span class="kc">None</span>
31503150

31513151
<span class="k">def</span><span class="w"> </span><span class="nf">setup</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">exp</span><span class="p">:</span> <span class="n">ExperimentClass</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
31523152
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Set up behavior.&quot;&quot;&quot;</span>
3153-
<span class="bp">self</span><span class="o">.</span><span class="n">params</span> <span class="o">=</span> <span class="n">exp</span><span class="o">.</span><span class="n">params</span>
3153+
<span class="bp">self</span><span class="o">.</span><span class="n">session_params</span> <span class="o">=</span> <span class="n">exp</span><span class="o">.</span><span class="n">session_params</span>
31543154
<span class="bp">self</span><span class="o">.</span><span class="n">exp</span> <span class="o">=</span> <span class="n">exp</span>
31553155
<span class="bp">self</span><span class="o">.</span><span class="n">logger</span> <span class="o">=</span> <span class="n">exp</span><span class="o">.</span><span class="n">logger</span>
31563156
<span class="bp">self</span><span class="o">.</span><span class="n">interface</span> <span class="o">=</span> <span class="n">exp</span><span class="o">.</span><span class="n">interface</span>
@@ -3410,8 +3410,8 @@ <h2 id="ethopy.core.behavior.Behavior" class="doc doc-heading">
34103410
<span class="sd"> &quot;&quot;&quot;</span>
34113411
<span class="k">if</span> <span class="n">rew</span><span class="p">:</span>
34123412
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">logger</span><span class="o">.</span><span class="n">total_reward</span> <span class="o">&gt;=</span> <span class="n">rew</span>
3413-
<span class="k">elif</span> <span class="bp">self</span><span class="o">.</span><span class="n">params</span><span class="p">[</span><span class="s2">&quot;max_reward&quot;</span><span class="p">]:</span>
3414-
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">logger</span><span class="o">.</span><span class="n">total_reward</span> <span class="o">&gt;=</span> <span class="bp">self</span><span class="o">.</span><span class="n">params</span><span class="p">[</span><span class="s2">&quot;max_reward&quot;</span><span class="p">]</span>
3413+
<span class="k">elif</span> <span class="bp">self</span><span class="o">.</span><span class="n">session_params</span><span class="p">[</span><span class="s2">&quot;max_reward&quot;</span><span class="p">]:</span>
3414+
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">logger</span><span class="o">.</span><span class="n">total_reward</span> <span class="o">&gt;=</span> <span class="bp">self</span><span class="o">.</span><span class="n">session_params</span><span class="p">[</span><span class="s2">&quot;max_reward&quot;</span><span class="p">]</span>
34153415
<span class="k">else</span><span class="p">:</span>
34163416
<span class="k">return</span> <span class="kc">False</span>
34173417
</code></pre></div></td></tr></table></div>
@@ -3745,7 +3745,7 @@ <h3 id="ethopy.core.behavior.Behavior.__init__" class="doc doc-heading">
37453745
<span class="bp">self</span><span class="o">.</span><span class="n">response_queue</span><span class="p">:</span> <span class="n">Queue</span> <span class="o">=</span> <span class="n">Queue</span><span class="p">(</span><span class="n">maxsize</span><span class="o">=</span><span class="mi">4</span><span class="p">)</span>
37463746
<span class="bp">self</span><span class="o">.</span><span class="n">last_lick</span> <span class="o">=</span> <span class="kc">None</span>
37473747

3748-
<span class="bp">self</span><span class="o">.</span><span class="n">params</span> <span class="o">=</span> <span class="kc">None</span>
3748+
<span class="bp">self</span><span class="o">.</span><span class="n">session_params</span> <span class="o">=</span> <span class="kc">None</span>
37493749
<span class="bp">self</span><span class="o">.</span><span class="n">exp</span> <span class="o">=</span> <span class="kc">None</span>
37503750
<span class="bp">self</span><span class="o">.</span><span class="n">logger</span> <span class="o">=</span> <span class="kc">None</span>
37513751
</code></pre></div></td></tr></table></div>
@@ -4120,8 +4120,8 @@ <h3 id="ethopy.core.behavior.Behavior.is_hydrated" class="doc doc-heading">
41204120
<span class="sd"> &quot;&quot;&quot;</span>
41214121
<span class="k">if</span> <span class="n">rew</span><span class="p">:</span>
41224122
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">logger</span><span class="o">.</span><span class="n">total_reward</span> <span class="o">&gt;=</span> <span class="n">rew</span>
4123-
<span class="k">elif</span> <span class="bp">self</span><span class="o">.</span><span class="n">params</span><span class="p">[</span><span class="s2">&quot;max_reward&quot;</span><span class="p">]:</span>
4124-
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">logger</span><span class="o">.</span><span class="n">total_reward</span> <span class="o">&gt;=</span> <span class="bp">self</span><span class="o">.</span><span class="n">params</span><span class="p">[</span><span class="s2">&quot;max_reward&quot;</span><span class="p">]</span>
4123+
<span class="k">elif</span> <span class="bp">self</span><span class="o">.</span><span class="n">session_params</span><span class="p">[</span><span class="s2">&quot;max_reward&quot;</span><span class="p">]:</span>
4124+
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">logger</span><span class="o">.</span><span class="n">total_reward</span> <span class="o">&gt;=</span> <span class="bp">self</span><span class="o">.</span><span class="n">session_params</span><span class="p">[</span><span class="s2">&quot;max_reward&quot;</span><span class="p">]</span>
41254125
<span class="k">else</span><span class="p">:</span>
41264126
<span class="k">return</span> <span class="kc">False</span>
41274127
</code></pre></div></td></tr></table></div>
@@ -4956,7 +4956,7 @@ <h3 id="ethopy.core.behavior.Behavior.setup" class="doc doc-heading">
49564956
<span class="normal">106</span>
49574957
<span class="normal">107</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span><span class="w"> </span><span class="nf">setup</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">exp</span><span class="p">:</span> <span class="n">ExperimentClass</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
49584958
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Set up behavior.&quot;&quot;&quot;</span>
4959-
<span class="bp">self</span><span class="o">.</span><span class="n">params</span> <span class="o">=</span> <span class="n">exp</span><span class="o">.</span><span class="n">params</span>
4959+
<span class="bp">self</span><span class="o">.</span><span class="n">session_params</span> <span class="o">=</span> <span class="n">exp</span><span class="o">.</span><span class="n">session_params</span>
49604960
<span class="bp">self</span><span class="o">.</span><span class="n">exp</span> <span class="o">=</span> <span class="n">exp</span>
49614961
<span class="bp">self</span><span class="o">.</span><span class="n">logger</span> <span class="o">=</span> <span class="n">exp</span><span class="o">.</span><span class="n">logger</span>
49624962
<span class="bp">self</span><span class="o">.</span><span class="n">interface</span> <span class="o">=</span> <span class="n">exp</span><span class="o">.</span><span class="n">interface</span>

0 commit comments

Comments
 (0)