Commit Graph

3499 Commits

Author SHA1 Message Date
Adam Blackwell ebda1b2ec8 TST: fixing relative imports 2016-03-16 12:17:53 -04:00
Scott Sanderson f2bfaab842 Merge pull request #1057 from quantopian/fixture-cleanups
MAINT: Cleanups while reading fixtures.
2016-03-16 10:39:51 -04:00
Scott Sanderson 56942e4598 DOC: Fix typo in docstring. 2016-03-15 20:34:40 -04:00
Scott Sanderson 73562a159d MAINT: Cleanups while reading fixtures. 2016-03-15 20:25:37 -04:00
Joe Jevnik 71f4e28e90 Merge pull request #1054 from quantopian/with-trading-env
WithTradingEnvironmnet and WithSimParams
2016-03-15 19:35:33 -04:00
David Michalowicz 276a108cfd Merge pull request #1052 from quantopian/empty-pipeline-bug
BUG: Empty pipeline failed to tz_localize
2016-03-15 14:59:59 -04:00
Joe Jevnik 792860b4cb MAINT: rename bz.Data -> bz.data 2016-03-15 14:29:48 -04:00
dmichalowicz 990c76e9fb BUG: Empty pipeline failed to tz_localize 2016-03-15 14:19:31 -04:00
Richard Frank 2976280a76 DOC: Fixed example notebook to include required calls to symbol 2016-03-15 11:08:44 -04:00
Eddie Hebert c5e2c67cd5 Merge pull request #1050 from quantopian/minute-bar-unadjusted-window
ENH: Unadjusted window data for minute bars.
2016-03-14 21:53:36 -04:00
Eddie Hebert 0f14972e08 ENH: Unadjusted window data for minute bars.
Add a method to minute bar reader which returns the OHLCV for all
requested fields for a list assets over the specified start and end
minutes.

Initial usage is intended for use by a loader which consumes minute bar
data to resample into daily bars, but may also be used when aggregating
minute data during '1d' history calls in Q2.0.

This iteration does not include including of early closes.
2016-03-14 21:52:01 -04:00
Joe Jevnik 4f247e3aaa TST: Adds WithLogger and WithTradingEnvironment 2016-03-14 19:32:55 -04:00
Maya Tydykov ef04a240e7 Merge pull request #1041 from quantopian/fix-buyback-auth-tests-in-pipeline
Fix buyback auth tests in pipeline
2016-03-14 11:20:49 -04:00
Maya Tydykov 8022a47f74 BUG: fix previous frame logic and buyback auth tests
WIP: earnings test case separated works

WIP: fix/reorganize buyback auth.

MAINT: clean up

MAINT: fix merge conflicts
2016-03-14 10:39:17 -04:00
Stewart Douglas ccdb376489 Merge pull request #1018 from quantopian/order-multiplier-values
BUG: Ensure consistent ordering of amounts, prices & multipliers
2016-03-11 17:49:50 -05:00
Scott Sanderson 7a6d2fb66e MAINT: Use more specific signature in decorator.
`if_not_float64_tell_caller_to_use_isnull` can't take additional
arguments, and accepting *args/**kwargs causes Sphinx to generate an
incorrect signature for decorated methods.
2016-03-11 15:29:44 -05:00
Stewart Douglas 0e97a01c05 TST: Test multiple calls to update_positions 2016-03-11 13:16:25 -05:00
Stewart Douglas e47cb96479 BUG: Ensure consistent ordering of amounts, prices & multipliers
Previously, we have assumed that the `amounts` and `last_sale_prices`
lists have the same order as the `value_multipliers`. This is not
correct, since to populate the `amounts` and `last_sale_prices` lists
we iterate over a `dict` (self.positions). The order of this `dict`
can change in arbitrary ways when it is updated, which occurs when
we call `update_positions`. Our `value_multipliers` however are stored
in an `OrderedDict`, meaning the order of existing key/value pairs
is not changed when they are updated.

To address this issue, we make sure that `self.positions` subclasses
`OrderedDict`.
2016-03-11 13:16:24 -05:00
Joe Jevnik 4f0babc558 DOC: update TradingAlgorithm docstring 2016-03-11 11:38:43 -05:00
Joe Jevnik f0a735ac6e Merge pull request #1042 from quantopian/test-fixtures
TST: move test_utils and adds test fixture classes
2016-03-10 16:51:52 -05:00
Joe Jevnik 721dd36116 TST: move test_utils and adds test fixture classes
Renames zipline.utils.test_utils to zipline.testing

Adds zipline.testing.fixtures.ZiplineTestCase to manage setup and
teardown and adds mixins to define fixtures like an asset finder or
trading calendar.
2016-03-10 15:39:52 -05:00
Joe Jevnik 9b1408596d Merge pull request #1012 from quantopian/partial-uploads
DEV: allow partial uploads in conda_build_matrix
2016-03-10 15:19:33 -05:00
Maya Tydykov 328d449e60 MAINT: don't test handler. 2016-03-08 19:29:28 -05:00
Maya Tydykov ef809c67d6 Merge pull request #1031 from quantopian/ignore_missing_deltas_in_pipeline
Ignore missing deltas in pipeline
2016-03-08 18:00:07 -05:00
Maya Tydykov 195c2fffb6 DOC: update doc.
DOC: update docs.
2016-03-08 17:24:04 -05:00
Maya Tydykov c87293942f TST: remove logging test and move missing sid test.
DOC: add docstring.

TST: reduce test data redundancy.

MAINT: use string constant.
2016-03-08 17:24:04 -05:00
Maya Tydykov ecb493e1a1 MAINT: remove logging. 2016-03-08 17:24:04 -05:00
Maya Tydykov ac82aa7d95 BUG: ignore sids in deltas missing from asset index.
MAINT: use correct debugger.

MAINT: fix set add.

WIP: move sid filtering.

WIP: move filtering logic.

WIP: working test.

TST: clean up test.

STY: fix flake8.

STY: fix flake8.
2016-03-08 17:24:04 -05:00
Maya Tydykov 6976f7e459 # This is a combination of 8 commits.
# The first commit's message is:
BUG: ignore sids in deltas missing from asset index.

# This is the 2nd commit message:

MAINT: use correct debugger.

# This is the 3rd commit message:

MAINT: fix set add.

# This is the 4th commit message:

WIP: move sid filtering.

# This is the 5th commit message:

WIP: move filtering logic.

# This is the 6th commit message:

WIP: working test.

# This is the 7th commit message:

TST: clean up test.

# This is the 8th commit message:

STY: fix flake8.
2016-03-08 17:24:04 -05:00
Eddie Hebert 37d341bb95 BUG: Truncate treasury curves to env min date. 2016-03-08 17:14:28 -05:00
Eddie Hebert 102f08535e Merge pull request #1034 from quantopian/add-floor-to-trading-env
ENH: Add min date to TradingEnvironment.
2016-03-08 15:08:25 -05:00
Scott Sanderson 1b5bc20e38 Merge pull request #1035 from quantopian/refactor-atomic
MAINT: Remove notion of "atomic" pipeline terms.
2016-03-08 14:50:24 -05:00
Eddie Hebert 3208bfdbb6 ENH: Add min date to TradingEnvironment.
Allow creation of TradingEnvironment to specify a minimum date, so that
trading days, market opens, etc. can trimmed to a range more relevant to
the backtest.

This changes is with an eye towards storing all market minutes in the
trading environment, where storing values for much more than the
simulation range starts to become more costly.
2016-03-08 14:40:42 -05:00
Scott Sanderson 535d05e714 MAINT: Remove notion of "atomic" pipeline terms.
Replace it by distinguishing between "Loadable" and "Computable".

This is useful because it's now  possible to write computable terms that
don't require  any inputs  (e.g. an `Always`  filter or  an `Everything`
classifier).
2016-03-08 13:49:45 -05:00
Maya Tydykov 80cc9f4896 Merge pull request #1027 from quantopian/add_buyback_auth_to_factors
MAINT: add buyback auth to factors init.
2016-03-08 13:32:30 -05:00
Maya Tydykov 548e457f50 MAINT: alphabetize. 2016-03-08 12:28:16 -05:00
Maya Tydykov eb8fed501b MAINT: add buyback auth to factors init. 2016-03-08 12:28:16 -05:00
Scott Sanderson dd3b3f3afb Merge pull request #1026 from quantopian/pipeline-generic-isempty
ENH: Add `isnull` and `notnull` methods to Factor.
2016-03-07 18:26:42 -05:00
Scott Sanderson abe559c764 DOC: Update NullFilter docstring. 2016-03-07 16:41:50 -05:00
Scott Sanderson f635a14289 ENH: Add isnull and notnull methods to Factor. 2016-03-07 16:19:08 -05:00
Scott Sanderson e810f26097 ENH: Add utilities for checking types generically. 2016-03-07 16:18:33 -05:00
Scott Sanderson cf3fb143fd DOC: Fix typo in docstring. 2016-03-07 16:17:50 -05:00
Richard Frank ba42e6d8b9 BLD: Pin libgfortran to 1.0, since conda scipy is compiled against it
Something was pulling in the latest (3.0), and then we'd fail to find
the 1.0 shared object at import time.
2016-03-04 17:31:21 -05:00
Maya Tydykov c1830584f9 Merge pull request #1022 from quantopian/better_buybackauth_names
MAINT: rename variables to simplify.
2016-03-03 16:21:48 -05:00
Maya Tydykov 0010828893 DOC: update whatsnew. 2016-03-03 15:27:16 -05:00
Maya Tydykov 810862eef4 MAINT: rename variables to simplify. 2016-03-03 15:27:16 -05:00
Scott Sanderson 214b3b6506 Merge pull request #1015 from quantopian/docs-updates-redux
Docs updates redux
2016-03-02 14:52:55 -05:00
Scott Sanderson 14360ca4b8 DOC: Minor docstring tweaks. 2016-03-02 12:25:23 -05:00
Scott Sanderson ec3c370c11 DOC: Update docs on BoundColumn. 2016-03-02 12:18:36 -05:00
Jonathan Kamens f5d6060bb4 MAINT: Upgrade six, futures, requests-futures, piprot versions
Upgrade six 1.9.0 -> 1.10.0 in requirements.txt, and futures 3.0.3 ->
3.0.5, requests-futures 0.9.5 -> 0.9.7, and piprot 0.9.1 -> 0.9.6 in
requirements_dev.txt.
2016-02-27 11:46:51 -05:00