">&#39;</span> <span class="p">(</span><span class="n">grid</span><span class="p">))</span>
    <span class="c1"># # determine grid format</span>
    <span class="c1"># if float(grid) / 100. &gt;= 0.5:</span>
    <span class="c1">#    # grid is defined in 1/1000 degrees; old format</span>
    <span class="c1">#    grid = &#39;{}/{}&#39;.format(float(grid) / 1000.,</span>
    <span class="c1">#                          float(grid) / 1000.)</span>
    <span class="c1"># elif float(grid) / 100. &lt; 0.5:</span