><span class="p">)</span>
    <span class="k">if</span> <span class="n">dstart</span> <span class="o">&gt;</span> <span class="n">dend</span><span class="p">:</span>
        <span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s1">&#39;ERROR: Start date is after end date! </span><span class="se">\n</span><span class="s1">&#39;</span>
                         <span class="s1">&#39;Please adapt the dates in CONTROL file or &#39;</span>
                         <s