Skip to content

Commit

Permalink
deploy: 1529f8c
Browse files Browse the repository at this point in the history
  • Loading branch information
hlavian committed Feb 28, 2024
1 parent bdb6360 commit f439ce1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _modules/sashimi/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ <h1>Source code for sashimi.config</h1><div class="highlight"><pre>

<span class="sd"> &quot;&quot;&quot;</span>
<span class="c1"># Ensure path to entry is always a string:</span>
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">dict_path</span><span class="p">)</span> <span class="o">==</span> <span class="nb">str</span><span class="p">:</span>
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">dict_path</span><span class="p">)</span> <span class="ow">is</span> <span class="nb">str</span><span class="p">:</span>
<span class="n">dict_path</span> <span class="o">=</span> <span class="p">[</span><span class="n">dict_path</span><span class="p">]</span>

<span class="c1"># Read and set:</span>
Expand Down
2 changes: 1 addition & 1 deletion _modules/sashimi/utilities.html
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ <h1>Source code for sashimi.utilities</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="n">clean_json</span><span class="p">(</span><span class="n">asdict</span><span class="p">(</span><span class="n">d</span><span class="p">))</span>
<span class="k">elif</span> <span class="nb">type</span><span class="p">(</span><span class="n">d</span><span class="p">)</span> <span class="ow">in</span> <span class="p">[</span><span class="nb">tuple</span><span class="p">,</span> <span class="nb">list</span><span class="p">]:</span>
<span class="c1"># json seems to have issues serializing np.int32:</span>
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">d</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="o">==</span> <span class="n">np</span><span class="o">.</span><span class="n">int32</span><span class="p">:</span>
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">d</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="ow">is</span> <span class="n">np</span><span class="o">.</span><span class="n">int32</span><span class="p">:</span>
<span class="n">d</span> <span class="o">=</span> <span class="p">[</span><span class="nb">int</span><span class="p">(</span><span class="n">i</span><span class="p">)</span> <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="n">d</span><span class="p">]</span>
<span class="k">return</span> <span class="n">d</span>
<span class="k">else</span><span class="p">:</span>
Expand Down

0 comments on commit f439ce1

Please sign in to comment.