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

pvlib / pvlib-python / 1626
96%

Build:
DEFAULT BRANCH: master
Ran 05 Oct 2018 10:39PM UTC
Jobs 5
Files 39
Run time 6min
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
1626

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

6198 of 6646 relevant lines covered (93.26%)

4.61 hits per line

Jobs
ID Job ID Ran Files Coverage
2 1626.2 (CONDA_ENV=py27) 05 Oct 2018 10:40PM UTC 0
93.18
Travis Job 1626.2
3 1626.3 (CONDA_ENV=py34) 05 Oct 2018 10:40PM UTC 0
93.08
Travis Job 1626.3
4 1626.4 (CONDA_ENV=py35) 05 Oct 2018 10:40PM UTC 0
93.09
Travis Job 1626.4
5 1626.5 (CONDA_ENV=py36 TASK="coverage" DEPLOY_ENV="true") 05 Oct 2018 10:39PM UTC 0
93.09
Travis Job 1626.5
6 1626.6 (CONDA_ENV=py37) 05 Oct 2018 10:45PM UTC 0
88.72
Travis Job 1626.6
Source Files on build 1626
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1626
  • 5ee82b1c on github
  • Prev Build on master (#1619)
  • Next Build on master (#1639)
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