<p dir="auto"></p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/scipy/scipy/blob/f57e5bf577c0d2ac6c611047961269348fd49315/scipy/stats/_distn_infrastructure.py#L2402">scipy/scipy/stats/_distn_infrastructure.py</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 2402
      in
      <a data-pjax="true" class="commit-tease-sha" href="/scipy/scipy/commit/f57e5bf577c0d2ac6c611047961269348fd49315">f57e5bf</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L2402" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2402"></td>
          <td id="LC2402" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">raise</span> <span class="pl-v">RuntimeError</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">I hit this message by running <code class="notranslate">scipy.stats.skewnorm.fit([1,2,np.nan])</code></p>
<p dir="auto">It would be good if the error was more descriptive. Perhaps "NaNs in data" or something, but I'm not sure if there are any other reasons that this error might get hit.</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1757" rel="nofollow">http://projects.scipy.org/scipy/ticket/1757</a> on 2012-10-29 by trac user stevenj, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a>.</em></p>
<p dir="auto">In <a href="http://projects.scipy.org/scipy/ticket/1741" rel="nofollow">http://projects.scipy.org/scipy/ticket/1741</a> you replaced the original non-free complex error function ("wofz") code with a version written by me. You should update to the latest version of my code, which improves accuracy and performance:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="http://ab-initio.mit.edu/wiki/index.php/Faddeeva_w"><pre class="notranslate"><code class="notranslate">http://ab-initio.mit.edu/wiki/index.php/Faddeeva_w
</code></pre></div>
<p dir="auto">There are also a few new test cases in the test program at the end of my code.</p>