grantjenks / python-runstats

Python module for computing statistics and regression in a single pass.
http://grantjenks.com/docs/runstats/
Other
96 stars 19 forks source link

Unable to open 'fast.pyx' in vscode #25

Closed sytelus closed 3 years ago

sytelus commented 4 years ago

When runstats throws an error (for example, trying to get stddev with only 1 item), IDEs like Visual Studio Code looks for .pyx file and as it is not found (because installed from pip, even with cython), the IDE throws error:

Unable to open 'fast.pyx'

This is unfortunate because it hides original error message.

Suggested fix

  1. Generate pyx or remove its dependency if installed from pip.
  2. Return nan instead of divide by 0 error for stddev and variance.
grantjenks commented 3 years ago

fast.pyx will be removed in the next version of runstats.