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

pvlib / pvlib-python / 2757
96%

Build:
DEFAULT BRANCH: master
Ran 29 Jan 2020 03:57PM UTC
Jobs 1
Files 66
Run time 11s
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
2757

push

travis-ci

web-flow
fix tmy3 leapyear in February handling, coerce_year raises exception (#866)

* create test for GH865

* checks if there is a 2/29 in the parsed output
* checks if can use coerce year

* check it's really greensboro

* also check that year is actually coerced

* check if the TMY Feb contains a leapyear

* then change 2/29 to 3/1
* add sanity check, indices should increase monotonically, by 1hr,
  except perhaps the last hour, which might be the previous year.
* add FIXME for coerce_year, should last hour be Jan1 of the next year?

* add data file, update what's new

* stickler space around operator in test

* move warning after notes

* oops, copy and paste error

* remove redundant Greensboro meta check

* use improved snippet from Kevin Anderson

* remove dateutil import
* remove _parsedate

* use 'h' unit string in pd.to_timedelta for min req pandas-0.18.1

* fix first and last hour issue are 1AM and midnite

* elaborate on warning regarding definition of TMY and possibly
  unexpected behavior when coercing the year
* add more comments
* use mod instead of subtracting hour to change midnite from 24 to zero
* shift all midnite rows one day forward
* check for leapday (2/29) and shift to March 1st
* add copious comments and a note that if pandas is updated to 0.24
  then we can use the `array` property to detect leapday
* add test to confirm that TMY3 1st hour is 1AM and last hour is midnite

* remove unneeded numpy import in iotools/tmy

* update what's new to explain that tmy3 dataframe now has original Date
  and Time columns used to parse the indices

* more explicit test for 2/29/1996 in tmy3

* wait to set index to avoid error in py35-min

* ValueError: cannot reindex from a duplicate axis

* try pandas datetime instead of index

* no need to convert data_ymd to datetime

* it ALREADY IS! ha ha ha

6279 of 8617 relevant lines covered (72.87%)

0.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2757.1 (CONDA_ENV=py35-min) 29 Jan 2020 03:57PM UTC 0
72.87
Travis Job 2757.1
Source Files on build 2757
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2757
  • fb1ab533 on github
  • Prev Build on master (#2727)
  • Next Build on master (#2791)
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