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

pvlib / pvanalytics / 717
100%

Build:
DEFAULT BRANCH: master
Ran 11 Sep 2020 08:27PM UTC
Jobs 4
Files 37
Run time 1min
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

pending completion
717

push

travis-ci

web-flow
Identify when the sun is up based on power or irradiance (#67)

* Implementation of the PVFleets day/night detection algorithm

Add the function features.daytime.power_or_irradiance() to identify
day and night from power or irradiance data.

* Test only one day in the series with zeros at mid-day

It will not work if every day has the same hours zeroed, there is no
information at that point to detect that the zeroes are an anomaly.

* Ignore low-ghi times in daytime tests

I don't have a good way of knowing exactly how accurate the daytime
mask should be. Mainly what we want to test is whether the values
where clearsky GHI is 0 are flagged as night and the values where
clearsky GHI is large are flagged as day.

* Add daytime mask test with different timestamp spacings

Adds tests at 1-hour spacing and at 1-minute spacing.

* Handle arbitrary timestamp spacing

Adjust the derivative threshold and the minimum run lengths to account
for input with arbitrary, but uniform, timestamp spacing.

* Add test covering daylight savings shifts

Seems like a good idea to cover these time periods when dealing with
day/night filters. Required a change to the shoulder value, relaxing
the criteria slightly, but I think 3 W/m^2 is still strict enough.

* Test daytime edge case and missing data

- Test the edge case where data goes to 0 mid-day and stays zero
  throughout the rest of the day (low value/low derivative runs in to
  night time)

- Test missing data where missing data is marked with NaN and missing
  data is completely missing

* Correct errors in the day/night mask where night is too long

These errors arise when input data goes to zero (or low) shortly
before sunset and remains there in to night. After the midday errors
are corrected by _filter_midday_errors() and clipping is flagged as
day we look at the two-week rolling median of length of each daytime
period, flagging days where the daytime period is more t... (continued)

1305 of 1305 relevant lines covered (100.0%)

4.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 717.1 11 Sep 2020 08:28PM UTC 0
100.0
Travis Job 717.1
2 717.2 11 Sep 2020 08:28PM UTC 0
100.0
Travis Job 717.2
3 717.3 11 Sep 2020 08:27PM UTC 0
100.0
Travis Job 717.3
4 717.4 11 Sep 2020 08:27PM UTC 0
100.0
Travis Job 717.4
Source Files on build 717
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #717
  • 7104074b on github
  • Prev Build on master (#708)
  • Next Build on master (#725)
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