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

pvlib / pvlib-python / 1626 / 2
96%
master: 96%

Build:
DEFAULT BRANCH: master
Ran 05 Oct 2018 10:40PM UTC
Files 39
Run time 3s
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

05 Oct 2018 10:34PM UTC coverage: 93.184% (-0.1%) from 93.282%
CONDA_ENV=py27

push

travis-ci

wholmgren
add test for hour_angle, vectorize (#599)

* add test for hour_angle, vectorize

* closes #598 vectorize to make it more efficient
* closes #597 add test

Signed-off-by: Mark Mikofski <bwana.marko@yahoo.com>

* BUG: use np.int64 works better for older numpy version than python int

* also converting times to int before subtracting works better for older
pandas versions which were not calculating the timedeltas correctly
* remove comment with missing space after hash, add FIXME that explains
why the expected values are slightly different than the SPA calculator
output

* fix hanging indent

* BUG: replace utcoffset() with reliable, efficient approach ...

* ... suggested by @wholmgren (thx!)
* utcoffset() is unpredictable when used with pandas datetime indices
* only predictable with Python datetime objects or pandas Timestamps
* instead replace tzinfo with None to get naive local times, and
calculate difference from tz-aware times to get timezones

* BUG: combine arithmetic to make calculation more efficient

* also use asarray wrapper at return to ensure consistency
* add comments to explain to future maintainers

* stickler

* remove try-except, doesn't work anyway, wait for pandas >=0.15.0

6193 of 6646 relevant lines covered (93.18%)

0.93 hits per line

Source Files on job 1626.2 (CONDA_ENV=py27)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1497
  • Travis Job 1626.2
  • 5ee82b1c on github
  • Prev Job for CONDA_ENV=py27 on master (#1619.2)
  • Next Job for CONDA_ENV=py27 on master (#1639.2)
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