Commit Graph

3928 Commits

Author SHA1 Message Date
Andrew Daniels 1cf8e46ae6 Merge pull request #1245 from quantopian/daily-bars-first-day-attr
BUG: Fixes reading and writing of daily bars first_trading_day attr
2016-06-02 15:09:12 -04:00
Andrew Daniels f8e0d8e13e Merge pull request #1242 from quantopian/data-portal-explicit-first-day
MAINT: Adds first_trading_day arg to DataPortal
2016-06-02 13:59:49 -04:00
Andrew Daniels 8e6c98e9aa BUG: Fixes reading and writing of daily bars first_trading_day attr
When writing first_trading_day, it is already in the correct frame of
reference (seconds since epoch) and does not need to be transformed
further. Adjusts the reader to expect this value.
2016-06-02 13:41:09 -04:00
Andrew Daniels 71f12ec272 MAINT: Adds first_trading_day arg to DataPortal
Instead of inferring it from the minute/daily writer, we now require the
first trading day to be passed explicitly, so the creator of the
DataPortal controls what is used as the first trading day.
2016-06-02 13:16:43 -04:00
Eddie Hebert 38d6107faf Merge pull request #1243 from quantopian/source-daily-from-minute
TST:  Enable sourcing daily data from minute data.
2016-06-02 13:10:28 -04:00
Eddie Hebert 2f80e94203 TST: Enable sourcing daily data from minute data.
Allow `WithBcolzDailyBarData` to opt-in to reading data defined by
`WithBcolzMinuteBarData`, so that the daily and minute test for the same
asset and dts correlate between the two readers.
The correlation is relevant for history tests which blend daily and
minute data.

Also, make the test data for the split and mergers assets in the minute
suite align at the thousands place if the adjustmets are applied
correctly, by starting the prices with a base of 4000 and then halving
the start value each day.
2016-06-02 12:28:53 -04:00
Richard Frank 8f0b3f41a1 BLD: Don't require gfortran on OSX either 2016-05-29 23:19:24 -07:00
Scott Sanderson 85327d8944 Merge pull request #1238 from quantopian/windows-doesnt-use-gfortran
BLD: Don't require gfortran on windows.
2016-05-27 20:07:31 -04:00
Scott Sanderson e7cdcc72ec BLD: Don't require gfortran on windows. 2016-05-27 19:35:25 -04:00
Scott Sanderson 0cef5eff2f BLD: Update MANIFEST to include .pyi and .pxi. 2016-05-27 18:21:29 -04:00
Joe Jevnik aa0592a4ea BLD: conda selectors for libgfortran when np==19 2016-05-27 17:28:40 -04:00
Scott Sanderson 24f30803bd REL: 1.0.1.
Update docs, whatsnew, and stub files for the release.
2016-05-27 16:41:47 -04:00
Scott Sanderson 05ac438c3c DOC/DEV: Add sphinx-autobuild to docs.
Adds a `make livehtml` target that spawns a server that rebuilds and
serves the docs every time a change happens.
2016-05-27 16:39:29 -04:00
Stewart Douglas 3ffe9a0536 Merge pull request #1234 from quantopian/variable-minute-blocks
Add test to cover new minute block logic
2016-05-26 10:00:20 -04:00
Stewart Douglas 71bcc7f911 DOC: Update comments to reflect new behavior 2016-05-26 09:38:25 -04:00
Stewart Douglas 17c20da026 TST: Add test to append minutely data 2016-05-26 09:38:25 -04:00
Scott Sanderson 5caccaeed5 Merge pull request #1230 from quantopian/pipeline-example
DOC/TEST: Add example algo using Pipeline.
2016-05-25 22:35:59 -04:00
Scott Sanderson 5e87bf2496 HACK: Call gc.collect in test_examples.
We need to call gc.collect before tearing down our class because we have
a cycle between TradingAlgorithm and AlgorithmSimulator which ultimately
holds a reference to the pipeline engine passed to the tests here.

This means that we're not guaranteed to have deleted our disk-backed
resource readers (e.g. SQLiteAdjustmentReader) before trying to delete
the tempdir, which causes failures on Windows because Windows doesn't
allow you to delete a file if someone still has an open handle to that
file.

The real fix for this is to break the cycle between TradingAlgorithm and
AlgorithmSimulator, but that requires significant breaking API changes.
2016-05-25 17:09:30 -04:00
David Michalowicz 2559c32548 Merge pull request #1214 from quantopian/outputs-name-conflicts
Factor outputs name conflicts
2016-05-25 16:36:08 -04:00
dmichalowicz 86486803b6 BUG: custom factor outputs naming collisions 2016-05-25 15:41:16 -04:00
Andrew Daniels 1bb8caba84 Merge pull request #1232 from quantopian/fix-minute-bcolz-padding
BUG: Fixes bcolz padding to not always pad 390 minutes
2016-05-25 15:23:17 -04:00
Andrew Daniels f1cfe1f2db BUG: Fixes bcolz padding to not always pad 390 minutes
If minutes already exist for the last existing day, adjust the number of
minutes padded to account for them. Previously we would always pad 390,
leading to a mismatch in the number of rows.
2016-05-25 14:26:16 -04:00
Andrew Liang d0890085bd Merge pull request #1231 from quantopian/log_capital_changes
LOG: Log the dt and amount when each capital change executes
2016-05-25 14:21:46 -04:00
Scott Sanderson c03bbbc928 BUG: Delete attrs before firing callbacks.
Prevents failures to remove sqlite files when cleaning up temporary
directories.
2016-05-25 14:17:57 -04:00
Andrew Liang fb9e1abb92 LOG: Log the dt and amount when each capital change executes 2016-05-25 11:58:05 -04:00
Andrew Liang d34b1b9224 Merge pull request #1212 from quantopian/capital_changes
DEV: Adjust performance calculations for capital changes
2016-05-24 23:30:17 -04:00
Scott Sanderson 392ac2f9d6 DOC/TEST: Add example algo using Pipeline. 2016-05-24 22:34:05 -04:00
Scott Sanderson 244664b6a3 MAINT: Clean up default handling in TradingAlgorithm. 2016-05-24 22:17:01 -04:00
Andrew Liang 40f42b43f5 DEV: Adjust performance calculations for capital changes
Refactor PerformancePeriod so that it creates a sub-period every
time a capital change happens within the period
2016-05-24 17:23:36 -04:00
Jean Bredeche 1630dc65d6 Merge pull request #1213 from quantopian/youre-charging-me-what
DEV: Re-implement commission models to return correct results in the case of multiple fills
2016-05-24 13:24:53 -04:00
Joe Jevnik 533233fae4 BUG: fix cell magic 2016-05-24 02:04:47 -04:00
Jean Bredeche 39bf1dbd7b DEV: Re-implement commission models to return correct results in the case of multiple fills. 2016-05-23 21:19:06 -04:00
Maya Tydykov 3ca294d494 Merge pull request #1186 from quantopian/remove_type_restrictions_for_generic_loader
Remove type restrictions for generic loader
2016-05-23 17:24:13 -04:00
Maya Tydykov e5039a43b0 TST: add tests to ensure no forward filling of non-missing values
STY: fix indentation

DOC: add docs to clarify test input/output
2016-05-23 16:48:52 -04:00
dmichalowicz a446401d03 DOC: Regression factor docstring fix 2016-05-23 16:40:22 -04:00
Maya Tydykov 3a3c7db844 MAINT: remove filling in missing value and ffill before coercing column 2016-05-23 15:53:55 -04:00
Maya Tydykov c0eb798cc6 TST: modify test class to use WithAssetFinder fixture.
BUG: assign result to var

TST: remove obsolete assertion

STY: fix line length
2016-05-23 15:53:55 -04:00
Maya Tydykov c94f3d0c9b BUG: fix replacement of NaN with None
TST: finish test with expected data

STY: alphabetize imports

MAINT: simplify condition - remove unnecessary statement
2016-05-23 15:53:55 -04:00
Maya Tydykov 8e630bff77 TST: remove obsolete test and update test 2016-05-23 15:53:55 -04:00
Maya Tydykov 0f8738ef32 MAINT: remove restrictions on strings for generic loader
MAINT: remove catch for NonNumpyCompatible since it's a subset of NonPipelineCompatible
2016-05-23 15:53:55 -04:00
Joe Jevnik 96ec1fd639 DOC: update bundle yahoo example 2016-05-20 15:40:46 -04:00
Joe Jevnik 5664d80c92 Merge pull request #1219 from quantopian/suggest-ingest
ENH: suggest running ingest if no data exists
2016-05-20 12:38:26 -04:00
Joe Jevnik a0f9915290 Merge pull request #1218 from quantopian/datareader-replace
MAINT: replace usages of pandas.io.data.DataReader with pandas_datare…
2016-05-20 12:36:00 -04:00
Joe Jevnik eda751cf88 ENH: suggest running ingest if no data exists 2016-05-20 11:37:48 -04:00
Maya Tydykov ef08572f54 Merge pull request #1201 from quantopian/dividends-add-currency-col
Dividends add currency col
2016-05-20 11:25:04 -04:00
Joe Jevnik 0bd790d122 MAINT: replace usages of pandas.io.data.DataReader with pandas_datareader.data.DataReader 2016-05-20 11:23:28 -04:00
Maya Tydykov 751a08a8a1 MAINT: move constants to appropriate files 2016-05-20 10:47:56 -04:00
Maya Tydykov 3d0764a50c ENH: add dividend type column
BUG: add back constant
2016-05-20 10:47:56 -04:00
Maya Tydykov 8a3b82c536 ENH: add column for currency type 2016-05-20 10:47:55 -04:00
Maya Tydykov 18d1577d56 MAINT: incorporate string support 2016-05-20 10:47:55 -04:00