DOC: whatsnew

This commit is contained in:
Joe Jevnik
2016-01-13 16:36:20 -05:00
parent 9d2ab48fb5
commit 6280614a69
2 changed files with 21 additions and 3 deletions
+19 -1
View File
@@ -63,7 +63,25 @@ Enhancements
subclasses inherit all of the columns from the parent. These columns will be
new sentinels so you can register them a custom loader (:issue:`924`).
* Added :func:`~zipline.utils.input_validation.coerce`.
* Added :func:`~zipline.utils.input_validation.coerce` to coerce inputs from one
type into another before passing them to the function (:issue:`948`).
* Added :func:`~zipline.utils.input_validation.optionally` to wrap other
preprocessor functions to explicitly allow ``None`` (:issue:`947`).
* Added :func:`~zipline.utils.input_validation.ensure_timezone` to allow string
arguments to get converted into ``datetime.tzinfo`` objects. This also allows
``tzinfo`` objects to be passed directly (:issue:`947`).
* Added two optional arguments, ``data_query_time`` and ``data_query_tz`` to
:class:`~zipline.pipeline.loaders.blaze.core.BlazeLoader` and
:class:`~zipline.pipeline.loaders.blaze.earnings.BlazeEarningsCalendarLoader`.
These arguments allow the user to specify some cutoff time for data when
loading from the resource. For example, if I want to simulate executing my
``before_trading_start`` function at ``8:45 US/Eastern`` then I could pass
``datetime.time(8, 45)`` and ``'US/Eastern'`` to the loader. This means that
data that is timestamped on or after ``8:45`` will not seen on that day in the
simulation. The data will be made available on the next day (:issue:`947`).
Experimental Features
~~~~~~~~~~~~~~~~~~~~~
+2 -2
View File
@@ -54,8 +54,8 @@ def optionally(preprocessor):
Traceback (most recent call last):
...
TypeError: arg must be int
>>> f(None) # call with explicit None
None
>>> f(None) is None # call with explicit None
True
"""
@wraps(preprocessor)
def wrapper(func, argname, arg):