Module Expr Str ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore BinOpSub Call NameLoad NameLoad Num While CompareGtE NameLoad Num body If CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num NameLoad body Assign NameStore NameLoad Break orelse If CompareLt SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num NameLoad body Break AugAssignSub NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice BinOpAdd NameLoad Num orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice BinOpAdd NameLoad Num Assign AttributeStore NameLoad attr ListLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list
N/A N/A 
.. moduleauthor:: Gabriel Martin Becedillas Ruiz <gabriel.becedillas@gmail.com>
 pyalgotrade dataseries datetime_aligned N/A N/A ds1 ds2 maxLen N/A None N/A N/A 
    Returns two dataseries that exhibit only those values whose datetimes are in both dataseries.

    :param ds1: A DataSeries instance.
    :type ds1: :class:`DataSeries`.
    :param ds2: A DataSeries instance.
    :type ds2: :class:`DataSeries`.
    :param maxLen: The maximum number of values to hold for the returned :class:`DataSeries`.
        Once a bounded length is full, when new items are added, a corresponding number of items are discarded from the
        opposite end. If None then dataseries.DEFAULT_MAX_LEN is used.
    :type maxLen: int.
     N/A aligned1 N/A N/A dataseries SequenceDataSeries maxLen N/A aligned2 N/A N/A dataseries SequenceDataSeries maxLen N/A N/A Syncer ds1 ds2 aligned1 aligned2 N/A N/A aligned1 aligned2 N/A Syncer N/A object N/A __init__ N/A N/A self sourceDS1 sourceDS2 destDS1 destDS2 N/A N/A N/A N/A self __values1 N/A N/A N/A self __values2 N/A N/A N/A self __destDS1 destDS1 N/A N/A self __destDS2 destDS2 N/A N/A N/A N/A N/A sourceDS1 getNewValueEvent subscribe N/A self __onNewValue1 N/A N/A N/A N/A N/A sourceDS2 getNewValueEvent subscribe N/A self __onNewValue2 N/A __findPosForDateTime N/A N/A self values dateTime N/A N/A N/A ret None N/A i N/A N/A len values 1 N/A N/A i 0 N/A N/A N/A N/A N/A values N/A i N/A 0 dateTime N/A N/A ret i N/A N/A N/A N/A N/A N/A values N/A i N/A 0 dateTime N/A N/A N/A i 1 N/A ret N/A __onNewValue1 N/A N/A self dataSeries dateTime value N/A N/A N/A pos2 N/A N/A self __findPosForDateTime N/A self __values2 dateTime N/A N/A pos2 None N/A N/A N/A N/A self __append dateTime value N/A N/A N/A self __values2 N/A pos2 N/A 1 N/A N/A self __values1 N/A N/A N/A self __values2 N/A N/A self __values2 N/A N/A pos2 1 N/A N/A N/A N/A N/A self __values1 append N/A dateTime value N/A __onNewValue2 N/A N/A self dataSeries dateTime value N/A N/A N/A pos1 N/A N/A self __findPosForDateTime N/A self __values1 dateTime N/A N/A pos1 None N/A N/A N/A N/A self __append dateTime N/A N/A N/A self __values1 N/A pos1 N/A 1 value N/A N/A self __values1 N/A N/A self __values1 N/A N/A pos1 1 N/A N/A self __values2 N/A N/A N/A N/A N/A N/A self __values2 append N/A dateTime value N/A __append N/A N/A self dateTime value1 value2 N/A N/A N/A N/A N/A N/A self __destDS1 appendWithDateTime dateTime value1 N/A N/A N/A N/A self __destDS2 appendWithDateTime dateTime value2 N/A N/A