Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 29, 2023
1 parent afff398 commit 83d6dfd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ <h1>Source code for compass.ocean.tests.global_ocean.dynamic_adjustment</h1><div
<span></span><span class="kn">import</span> <span class="nn">glob</span>
<span class="kn">import</span> <span class="nn">importlib.resources</span>
<span class="kn">import</span> <span class="nn">os</span>
<span class="kn">import</span> <span class="nn">platform</span>
<span class="kn">from</span> <span class="nn">datetime</span> <span class="kn">import</span> <span class="n">datetime</span><span class="p">,</span> <span class="n">timedelta</span>

<span class="kn">import</span> <span class="nn">xarray</span> <span class="k">as</span> <span class="nn">xr</span>
Expand Down Expand Up @@ -332,7 +333,10 @@ <h1>Source code for compass.ocean.tests.global_ocean.dynamic_adjustment</h1><div
<span class="n">start</span> <span class="o">=</span> <span class="n">datetime</span><span class="o">.</span><span class="n">strptime</span><span class="p">(</span><span class="n">start_time</span><span class="p">,</span> <span class="s1">&#39;%Y-%m-</span><span class="si">%d</span><span class="s1">_%H:%M:%S&#39;</span><span class="p">)</span>
<span class="n">duration</span> <span class="o">=</span> <span class="n">_parse_duration</span><span class="p">(</span><span class="n">run_duration</span><span class="p">)</span>
<span class="n">restart</span> <span class="o">=</span> <span class="n">start</span> <span class="o">+</span> <span class="n">duration</span>
<span class="n">restart_time</span> <span class="o">=</span> <span class="n">restart</span><span class="o">.</span><span class="n">strftime</span><span class="p">(</span><span class="s1">&#39;%4Y-%m-</span><span class="si">%d</span><span class="s1">_%H:%M:%S&#39;</span><span class="p">)</span>
<span class="k">if</span> <span class="n">platform</span><span class="o">.</span><span class="n">system</span><span class="p">()</span> <span class="o">==</span> <span class="s1">&#39;Darwin&#39;</span><span class="p">:</span>
<span class="n">restart_time</span> <span class="o">=</span> <span class="n">restart</span><span class="o">.</span><span class="n">strftime</span><span class="p">(</span><span class="s1">&#39;%Y-%m-</span><span class="si">%d</span><span class="s1">_%H:%M:%S&#39;</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">restart_time</span> <span class="o">=</span> <span class="n">restart</span><span class="o">.</span><span class="n">strftime</span><span class="p">(</span><span class="s1">&#39;%4Y-%m-</span><span class="si">%d</span><span class="s1">_%H:%M:%S&#39;</span><span class="p">)</span>
<span class="k">return</span> <span class="n">restart_time</span>


Expand Down

0 comments on commit 83d6dfd

Please sign in to comment.