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

quantopian / zipline / 1829
83%
master: 88%

Build:
Build:
LAST BUILD BRANCH: patch-1
DEFAULT BRANCH: master
Ran 25 Jun 2014 03:13PM UTC
Jobs 2
Files 66
Run time 7min
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
1829

push

travis-ci

ssanderson
BUG: History no longer fails on length-1 '1m' price-only HistorySpecs

The bug occurred because there is a special case in the initial window setup
code for handling the case where only a length-1 history is used for a given
frequency.  Previously, the code was incorrectly calculating the period end
using a hard-coded expression for the end of the day (the correct behavior for
a length-1 '1d' history), and then using the frequency object to calculate the
period start for the window.  In the case of length 1 '1m' data, this resulted
in an initial window whose start and end was the last minute of the day rather
than the first minute of the day.  For non-price fields, this error doesn't
matter, because the window is only used for rolling digests (which doesn't
happen when there's only a length-1 history), and for the forward-filling logic
(which only happens on price fields).  For a length-1 '1m' price, however, the
incorrect window causes us to attempt to forward-fill an empty panel, resulting
in an IndexError when we do an iloc[0] on a length-0 axis.

2 of 2 new or added lines in 1 file covered. (100.0%)

4168 of 5000 relevant lines covered (83.36%)

1.67 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
zipline/history/history_container.py
Jobs
ID Job ID Ran Files Coverage
1 1829.1 25 Jun 2014 03:13PM UTC 0
83.3
Travis Job 1829.1
2 1829.2 25 Jun 2014 03:16PM UTC 0
83.3
Travis Job 1829.2
Source Files on build 1829
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1829
  • 6a2ee7c4 on github
  • Prev Build on 1m_history_bugfix (#1826)
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