Module Expr Str ImportFrom alias ImportFrom alias Import alias identifier ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults kwarg body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list Assign NameStore Call NameLoad keyword Lambda arguments args NameParam defaults AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Str Str keyword NameLoad Assign AttributeStore NameLoad attr NameStore Call NameLoad Call NameLoad Num Num Assign AttributeStore NameLoad attr Call NameLoad keyword Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Slice Num keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad For TupleStore NameStore TupleStore NameStore NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Return Call NameLoad NameLoad keyword SubscriptLoad AttributeLoad NameLoad attr Slice UnaryOpUSub NameLoad keyword SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad Call NameLoad Call NameLoad NameLoad keyword NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return UnaryOpInvert Call AttributeLoad NameLoad attr keyword NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list NameLoad decorator_list
N/A N/A 
Base class for Pipeline API  unittests.
 functools wraps unittest TestCase N/A numpy np numpy arange prod pandas date_range Int64Index DataFrame six iteritems zipline.assets.synthetic make_simple_equity_info zipline.pipeline.engine SimplePipelineEngine zipline.pipeline TermGraph zipline.pipeline.term AssetExists zipline.testing check_arrays ExplodingObject tmp_asset_finder zipline.utils.functional dzip_exact zipline.utils.pandas_utils explode zipline.utils.tradingcalendar trading_day with_defaults N/A N/A N/A default_funcs N/A N/A 
    Decorator for providing dynamic default values for a method.

    Usages:

    @with_defaults(foo=lambda self: self.x + self.y)
    def func(self, foo):
        ...

    If a value is passed for `foo`, it will be used. Otherwise the function
    supplied to `with_defaults` will be called with `self` as an argument.
     decorator N/A N/A f N/A N/A method N/A N/A self N/A args kwargs N/A N/A N/A name func N/A iteritems default_funcs N/A N/A N/A name kwargs N/A N/A N/A kwargs N/A name N/A func self N/A N/A f self args kwargs N/A N/A wraps f N/A method N/A N/A decorator N/A N/A with_default_shape N/A with_defaults shape N/A N/A N/A self N/A N/A self default_shape BasePipelineTestCase N/A TestCase N/A setUpClass N/A N/A cls N/A N/A N/A N/A cls __calendar N/A date_range 2014 2015 freq trading_day N/A N/A cls __assets assets N/A Int64Index N/A arange 1 20 N/A N/A cls __tmp_finder_ctx N/A tmp_asset_finder equities N/A make_simple_equity_info assets N/A N/A cls __calendar N/A 0 N/A N/A cls __calendar N/A -1 N/A N/A cls __finder N/A N/A N/A cls __tmp_finder_ctx __enter__ N/A N/A cls __mask N/A N/A N/A cls __finder lifetimes N/A N/A cls __calendar N/A -30 include_start_date False N/A classmethod tearDownClass N/A N/A cls N/A N/A N/A N/A N/A N/A cls __tmp_finder_ctx __exit__ N/A classmethod default_shape N/A N/A self N/A N/A N/A Default shape for methods that build test data. N/A N/A N/A self __mask shape N/A property run_graph N/A N/A self graph initial_workspace mask N/A None N/A N/A 
        Compute the given TermGraph, seeding the workspace of our engine with
        `initial_workspace`.

        Parameters
        ----------
        graph : zipline.pipeline.graph.TermGraph
            Graph to run.
        initial_workspace : dict
            Initial workspace to forward to SimplePipelineEngine.compute_chunk.
        mask : DataFrame, optional
            This is a value to pass to `initial_workspace` as the mask from
            `AssetExists()`.  Defaults to a frame of shape `self.default_shape`
            containing all True values.

        Returns
        -------
        results : dict
            Mapping from termname -> computed result.
         N/A engine N/A SimplePipelineEngine N/A N/A N/A column N/A N/A ExplodingObject N/A self __calendar N/A self __finder N/A N/A mask None N/A N/A mask N/A self __mask N/A N/A dates assets mask_values N/A explode mask N/A N/A N/A initial_workspace setdefault N/A AssetExists mask_values N/A N/A N/A engine compute_chunk graph dates assets initial_workspace N/A check_terms N/A N/A self terms expected initial_workspace mask N/A N/A N/A 
        Compile the given terms into a TermGraph, compute it with
        initial_workspace, and compare the results with ``expected``.
         N/A graph N/A TermGraph terms N/A results N/A N/A self run_graph graph initial_workspace mask N/A N/A key N/A res exp N/A N/A N/A dzip_exact results expected items N/A N/A N/A check_arrays res exp N/A build_mask N/A N/A self array N/A N/A N/A 
        Helper for constructing an AssetExists mask from a boolean-coercible
        array.
         N/A N/A ndates nassets N/A array shape N/A N/A DataFrame array index N/A N/A self __calendar N/A N/A ndates columns N/A N/A self __assets N/A nassets dtype bool N/A arange_data N/A N/A self shape dtype N/A float N/A N/A 
        Build a block of testing data from numpy.arange.
         N/A N/A N/A N/A arange N/A prod shape dtype dtype reshape shape N/A with_default_shape randn_data N/A N/A self seed shape N/A N/A N/A 
        Build a block of testing data from a seeded RandomState.
         N/A N/A N/A N/A N/A N/A np random RandomState seed randn shape N/A with_default_shape eye_mask N/A N/A self shape N/A N/A N/A 
        Build a mask using np.eye.
         N/A N/A N/A N/A np eye dtype bool shape N/A with_default_shape ones_mask N/A N/A self shape N/A N/A N/A N/A N/A np ones shape dtype bool N/A with_default_shape N/A