Commit Graph

3748 Commits

Author SHA1 Message Date
Maya Tydykov 11d666daaa TST: add test for 13d filings dataset
MAINT: add 13d filings to factors init

MAINT: rename constant

MAINT: add event_date_col field
2016-04-28 11:59:49 -04:00
Maya Tydykov e726cc94c9 ENH: add 13d filings dataset to pipeline 2016-04-28 11:53:45 -04:00
Andrew Liang 231c3a58b1 Merge pull request #1166 from quantopian/empty_positions
BUG: Don't save empty positions when user access non-existent position
2016-04-26 16:58:11 -04:00
Andrew Liang 4ffe04e4a5 FIX: Add last_sale_date to Position init for consistency 2016-04-26 16:13:07 -04:00
Andrew Liang d69b960c49 BUG: Don't save empty positions when user access non-existent position
Previously, whenever we try to access a missing value on the Positions
dict, we return a default Position and save it to the dict. Instead,
just return the Position
2016-04-26 13:28:35 -04:00
Jean Bredeche 50f4917341 Merge pull request #1164 from quantopian/get_open_orders_error
DEV: Better error message for sid= in get_open_orders
2016-04-26 13:01:50 -04:00
Andrew Liang 5809ae17f1 DEV: Better error message for sid= in get_open_orders
Let the user to know to use asset= instead
2016-04-26 12:23:57 -04:00
Jean Bredeche 789dba8eca Merge pull request #1165 from quantopian/dont-order-in-bts
BUG: don't allow ordering in before_trading_start
2016-04-26 10:57:05 -04:00
Jean Bredeche c404c60d68 BUG: don't allow ordering in before_trading_start 2016-04-26 10:56:36 -04:00
Maya Tydykov b7765fe0d3 Merge pull request #1153 from quantopian/filter-nulls-in-expected-cols
Filter nulls in expected cols
2016-04-25 16:32:45 -04:00
Jean Bredeche ba20235d83 Merge pull request #1162 from quantopian/handle-missing-fields
DEV: Don't log an error if we can't find a matching asset/field/day triple in Fetcher
2016-04-25 16:22:17 -04:00
Maya Tydykov 0191d9d903 MAINT: move filtering for null date rows back to dataframe
TST: test both next and prev event frame loading and use EventsLoader.

BUG: remove extra arg

MAINT: call list on zip for compatibility with python 3
2016-04-25 16:11:12 -04:00
Maya Tydykov 390295481c TST: add test for blaze loader with null data in date col
MAINT: fix blaze query
2016-04-25 11:42:10 -04:00
Maya Tydykov 8585fd5b59 MAINT: move filtering for nulls in date column to blaze loader 2016-04-25 11:42:10 -04:00
Maya Tydykov e41c99d077 MAINT: add an event date col field to each loader
MAINT: add event date col field and filter rows where this field is null

TST: modify tests to filter nulls in event date col

MAINT: calculate value repeats by vectorized computation on separate start and end dates.

MAINT: pass DatetimeIndex instead of list of strings
2016-04-25 11:42:08 -04:00
Maya Tydykov f8aa7c2ef4 TST: add test for case when null in expected column 2016-04-25 11:42:06 -04:00
Jean Bredeche 19128fa5a3 Merge pull request #1163 from quantopian/flake8-first
BLD: run flake8 first, before tests
2016-04-25 10:50:22 -04:00
Jean Bredeche d9d0c2f9fc run flake8 first, before tests 2016-04-25 09:56:44 -04:00
Jean Bredeche 02ded435f6 DEV: Don't log an error if we can't find a matching asset/field/day triple in fetcher data 2016-04-25 09:47:18 -04:00
Maya Tydykov 89412616a6 MAINT: filter rows with nulls in expected columns 2016-04-22 10:38:20 -04:00
Eddie Hebert a13e336ef5 Merge pull request #1157 from quantopian/use-carray-instead-of-read-all-on-small-size
PERF: Improve read time for smaller num of assets.
2016-04-21 22:25:01 -04:00
Richard Frank baa9850337 Merge pull request #1160 from quantopian/the-garbage-man-cant
TST: What if we don't gc...
2016-04-21 20:46:21 -04:00
Eddie Hebert 66d05aa563 PERF: Improve read time for smaller num of assets.
The BcolzDailyBarReader was optimized for the pipeline case of reading
all assets at once.

Now that the reader is also used to support daily history the case of
reading a data for a small number of assets is more common, particularly
in algorithms that use the history API which have a high rotation of
assets (e.g. an algorithm which pipeline uses to set the active
universe)

Remove the bottleneck in reading a small number of assets by
conditionally reading the slice for each asset from the carray, instead
of reading the data for all equities and then indexing into that full
array. On a certain number of assets, it is still better to read all the
data at once. On the Quantopian dataset, which holds data for 20000
about for the last 10 years of equity data (where not all equities trade
over the full range), stored in 118 blosc blp files per column, the
tipping point where the 'read all' mode wins out between 3000-4000
assets.

That number was tested by trying to exercise a worst case scenario where
the equities were spread out evenly across the blp files, by stepping
along a sorted list of assets that were alive over a query range which
spanned 70 trading days.
```
size = 3000
sids = [assets[i] for i in range(0, len(assets), len(assets) /
size)][:size]
```

Also, add parameter to WithBcolzDailyBarReader fixture which allows the
test to specify what the threshold count for reading all data should be,
so that the test_us_equity_pricing can be forced into either mode to
make sure that both branches in logic are covered by all test cases.

On local dev machine this patch improves the read time of `load_raw_array`
for one asset from 100 ms to 96.5 µs. (10^5 improvement.) With reading
only asset per call a being an observed common case when populating the
non-cached values in USEquityHistoryLoader.
2016-04-21 20:43:52 -04:00
Richard Frank 8c92f2d241 TST: What if we don't gc...
Looks like we removed ref cycles elsewhere, so windows builds are
passing without this.
2016-04-21 18:41:57 -04:00
Richard Frank ef9b986b38 Merge pull request #1159 from quantopian/appveyor-conda-reunion
Appveyor conda reunion
2016-04-21 17:24:40 -04:00
Richard Frank b510703169 BLD: Using GCE to prevent the "input line is too long" error
when activating a conda env.
2016-04-21 17:00:30 -04:00
Richard Frank bffe00f931 BLD: Print the download failure reason 2016-04-21 17:00:30 -04:00
Richard Frank baf10e3148 BLD: Don't accept the download if we tried too many times
It's likely we have an incomplete file.
2016-04-21 17:00:30 -04:00
Richard Frank 9a59cd064b BLD: Download miniconda over SSL 2016-04-21 17:00:30 -04:00
Maya Tydykov e5ccd814e8 Merge pull request #1143 from quantopian/add-final-val-col-to-estimates
ENH: add actual value column to estimates dataset.
2016-04-21 16:23:55 -04:00
Jean Bredeche cb5ed8d1a8 Merge pull request #1158 from quantopian/yes-we-want-the-broker-order-id
BUG: Restoring 'broker_order_id' to Order's dict
2016-04-21 15:20:47 -04:00
Jean Bredeche 2a981dc725 BUG: Restoring 'broker_order_id' to Order's dict
More long-term fix is coming later, this restores existing downstream
behavior.
2016-04-21 15:18:42 -04:00
Jean Bredeche f06968f494 Merge pull request #1156 from quantopian/fetcher_bts
BUG: Fetcher wasn't working properly in `before_trading_start`.
2016-04-21 15:09:52 -04:00
Jean Bredeche 9d1e15ddde BUG: Fetcher wasn't working properly in before_trading_start.
We were trying to use the previous day in before_trading_start because
we were looking for the previous market minute, then normalizing it.  That's
no longer the case, as we want to use today's date for fetcher lookups
in before_trading_start.

Also refactored a bit how dataportal determines if a query should be
routed to the fetcher data structures.
2016-04-21 15:09:14 -04:00
David Michalowicz 48f9e6f1c9 Merge pull request #1148 from quantopian/migrate-whatsnew
DOC: Move latest notes to 1.0.0.txt
2016-04-21 15:07:01 -04:00
dmichalowicz 84e5c32cde DOC: Move latest notes to 1.0.0.txt 2016-04-21 12:42:22 -04:00
Jean Bredeche cb42875697 Merge pull request #1152 from quantopian/check-keyword-args
BUG: we were improperly checking iterable kwargs in BarData
2016-04-21 12:32:44 -04:00
Jean Bredeche 6423a2cfbd Merge branch 'master' into check-keyword-args 2016-04-21 12:31:45 -04:00
David Michalowicz 28ffee248f Merge pull request #1119 from quantopian/multiple-factor-outputs
Support multiple outputs for custom factors
2016-04-21 11:51:47 -04:00
Maya Tydykov bd58140b97 ENH: add actual value column to estimates dataset. 2016-04-21 11:45:00 -04:00
Jean Bredeche c323506f40 BUG: we were improperly checking iterable kwargs in BarData 2016-04-21 11:06:46 -04:00
dmichalowicz d9bfcaabde ENH: Support multiple outputs for custom factors 2016-04-21 10:57:29 -04:00
Jean Bredeche 2826226431 Merge pull request #1151 from quantopian/broker-order-id
BUG: need `broker_order_id` for downstream code
2016-04-21 09:04:13 -04:00
Jean Bredeche 898942a940 BUG: need broker_order_id for downstream code 2016-04-21 08:22:21 -04:00
Jean Bredeche 2179553034 Merge pull request #1150 from quantopian/vegas-baby
Use __slots__ in Order object to save memory
2016-04-20 21:28:13 -04:00
Jean Bredeche a1f19dca54 Use __slots__ to save memory 2016-04-20 16:59:55 -04:00
John Ricklefs 842c47b328 ENH: Make arena configurable for SimulationParameters (#1144) 2016-04-19 23:39:27 -04:00
Maya Tydykov 0e3db1f44a Merge pull request #1135 from quantopian/custom-estimates-in-pipeline
Custom estimates in pipeline
2016-04-19 15:01:27 -04:00
Maya Tydykov 1531568899 ENH: add custom dataset for estimize
MAINT: alphabetize constants

MAINT: remove obsolete column

TST: refactor tests to use common code

MAINT: remove unneeded fields from dataset

MAINT: remove obsolete earnings estimates columns and refactor
2016-04-19 11:29:03 -04:00
Jean Bredeche a5f7fc7d6d Merge pull request #1141 from quantopian/rule_interactions
BUG: Week rule plus time rule doesn't work
2016-04-18 20:01:26 -04:00