• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pvlib / pvanalytics / 826 / 3
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 27 Oct 2020 02:01AM UTC
Files 38
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Oct 2020 08:41PM UTC coverage: 99.688% (+0.01%) from 99.676%
826.3

push

travis-ci

web-flow
Use statsmodels for maximum absolute deviation (#85)

* Use statsmodels for maximum absolute deviation

Rather than scipy.stats we will use statsmodels.robust.scale.mad()
to calculate the Maximum Absolute Deviation. This change will let us
lower the minimum scipy version to 1.2
(scipy.stats.maximum_absolute_deviation was introduces in 1.3).

* Lower minimum scipy version to 1.2

* MAD scaling using of the `c` parameter to robust.scale.mad()

statsmodels.robust.scale.mad() handles scaling internally. In fact the
previous implementation was incorrect, relying on the raw MAD rather
than scaling it by the `scale` parameter in the default usage, and
scaling incorrectly if users pass a non-default `scale`. This commit
fixes the usage of mad() and fixes a test which was also implemented
incorrectly.

The changes to the test change the `maximum_deviation` cutoff and now
reflect the true variability in the data. Outliers are placed at +/-
5, 10, and 25 times the variance. We now pass these values as the
cutoff in each test and see the correct outliers allowed to pass.

* Default to scale=None in pvanalytics.outliers.hampel()

Use None to specify the more precise value used by default in
the statsmodels function. Add test that verifies the scale parameter
has an effect (does not verify much beyond this; relies on the
correctness of the statsmodel implementation).

1595 of 1600 relevant lines covered (99.69%)

1.0 hits per line

Source Files on job 826.3
  • Tree
  • List 0
  • Changed 18
  • Source Changed 8
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 716
  • Travis Job 826.3
  • 5eeac024 on github
  • Prev Job for on master (#804.1)
  • Next Job for on master (#846.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc