an class="n">define_residual_transform</span>
<span class="k">def</span><span class="w"> </span><span class="nf">my_transform</span><span class="p">(</span><span class="n">d</span><span class="p">):</span>
    <span class="n">d</span><span class="o">.</span><span class="n">ft</span><span class="p">(</span><span class="s2">&quot;t&quot;</span><span class="p">)</span>
    <span class="k">return</span> <span class="n">d</span>

<a href="../auto_api/pyspecdata.html#pyspecdata.lmfitdata.functional_form" title="p