  <span class="c1">#if tids[j] - cur &lt;= periodicity:</span>
                <span class="c1">#return [0,0]</span>
            <span class="n">per</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">tids</span><span class="p">[</span><span class="n">j</span><span class="p">]</span> <span class="o">-</span> <span class="n">cur</span><span class="p">)</span>
            <span class="n">cur</span> <span class="o">=</span> <span class="n">tids</span><span class="