Module Expr Str ImportFrom alias alias alias Import alias identifier ImportFrom alias FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr ListLoad BinOpSub SubscriptLoad NameLoad Index Num Num SubscriptLoad NameLoad Slice Num Num Assign NameStore Call NameLoad BinOpMult Num BinOpAdd NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Num Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Num AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareGt AttributeLoad NameLoad attr Num body Raise Call NameLoad Str If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Call NameLoad NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareGt AttributeLoad NameLoad attr Num body Raise Call NameLoad Str If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Call NameLoad NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareGt AttributeLoad NameLoad attr Num body Raise Call NameLoad Str If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Call NameLoad NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad If CompareIsNot NameLoad NameLoad body Break orelse Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Raise Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Num Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Num AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Return NameLoad decorator_list
N/A N/A  helper_funcs.py.
    scavenged from enthought,interpolate
 __future__ division print_function absolute_import N/A numpy np N/A _interpolate atleast_1d_and_contiguous N/A N/A ary dtype N/A N/A np float64 N/A N/A N/A N/A np atleast_1d N/A N/A np ascontiguousarray ary dtype N/A nearest N/A N/A x y new_x N/A N/A N/A 
    Rounds each new x to nearest input x and returns corresponding input y.

    Parameters
    ----------
    x : array_like
        Independent values.
    y : array_like
        Dependent values.
    new_x : array_like
        The x values to return the interpolate y values.

    Returns
    -------
    nearest : ndarray
        Rounds each `new_x` to nearest `x` and returns the corresponding `y`.

     N/A shifted_x N/A N/A np concatenate N/A N/A N/A np array N/A N/A N/A x N/A 0 1 N/A x N/A 0 -1 N/A midpoints_of_x N/A atleast_1d_and_contiguous N/A 0.5 N/A x shifted_x N/A new_x N/A atleast_1d_and_contiguous new_x N/A TINY 1e-10 N/A indices N/A N/A N/A np searchsorted midpoints_of_x N/A new_x TINY 1 N/A indices N/A N/A np atleast_1d N/A N/A N/A N/A np clip indices 0 N/A np Inf astype int N/A new_y N/A N/A np take y indices axis -1 N/A new_y N/A linear N/A N/A x y new_x N/A N/A N/A 
    Linearly interpolates values in new_x based on the values in x and y

    Parameters
    ----------
    x : array_like
        Independent values
    y : array_like
        Dependent values
    new_x : array_like
        The x values to return the interpolated y values.

     N/A x N/A atleast_1d_and_contiguous x N/A np float64 N/A y N/A atleast_1d_and_contiguous y N/A np float64 N/A new_x N/A atleast_1d_and_contiguous new_x N/A np float64 N/A N/A N/A y ndim 2 N/A N/A N/A ValueError `linear` only works with 1-D or 2-D arrays. N/A N/A N/A len N/A y shape 2 N/A N/A new_y N/A N/A np zeros N/A N/A N/A y shape N/A 0 N/A len new_x N/A np float64 N/A i N/A range N/A len new_y N/A N/A N/A N/A _interpolate linear_dddd x N/A y N/A i new_x N/A new_y N/A i N/A N/A new_y N/A N/A np zeros N/A len new_x N/A np float64 N/A N/A N/A _interpolate linear_dddd x y new_x new_y N/A new_y N/A logarithmic N/A N/A x y new_x N/A N/A N/A 
    Linearly interpolates values in new_x based in the log space of y.

    Parameters
    ----------
    x : array_like
        Independent values.
    y : array_like
        Dependent values.
    new_x : array_like
        The x values to return interpolated y values at.

     N/A x N/A atleast_1d_and_contiguous x N/A np float64 N/A y N/A atleast_1d_and_contiguous y N/A np float64 N/A new_x N/A atleast_1d_and_contiguous new_x N/A np float64 N/A N/A N/A y ndim 2 N/A N/A N/A ValueError `linear` only works with 1-D or 2-D arrays. N/A N/A N/A len N/A y shape 2 N/A N/A new_y N/A N/A np zeros N/A N/A N/A y shape N/A 0 N/A len new_x N/A np float64 N/A i N/A range N/A len new_y N/A N/A N/A N/A _interpolate loginterp_dddd x N/A y N/A i new_x N/A new_y N/A i N/A N/A new_y N/A N/A np zeros N/A len new_x N/A np float64 N/A N/A N/A _interpolate loginterp_dddd x y new_x new_y N/A new_y N/A block_average_above N/A N/A x y new_x N/A N/A N/A 
    Linearly interpolates values in new_x based on the values in x and y.

    Parameters
    ----------
    x : array_like
        Independent values.
    y : array_like
        Dependent values.
    new_x : array_like
        The x values to interpolate y values.

     N/A bad_index None N/A x N/A atleast_1d_and_contiguous x N/A np float64 N/A y N/A atleast_1d_and_contiguous y N/A np float64 N/A new_x N/A atleast_1d_and_contiguous new_x N/A np float64 N/A N/A N/A y ndim 2 N/A N/A N/A ValueError `linear` only works with 1-D or 2-D arrays. N/A N/A N/A len N/A y shape 2 N/A N/A new_y N/A N/A np zeros N/A N/A N/A y shape N/A 0 N/A len new_x N/A np float64 N/A i N/A range N/A len new_y N/A N/A bad_index N/A N/A _interpolate block_averave_above_dddd x N/A y N/A i new_x N/A new_y N/A i N/A N/A bad_index None N/A N/A N/A N/A new_y N/A N/A np zeros N/A len new_x N/A np float64 N/A bad_index N/A N/A _interpolate block_average_above_dddd x y new_x new_y N/A N/A bad_index None N/A N/A msg N/A block_average_above cannot extrapolate and new_x[%d]=%f is out of the x range (%f, %f) N/A bad_index N/A new_x N/A bad_index N/A x N/A 0 N/A x N/A -1 N/A N/A ValueError msg N/A new_y N/A block N/A N/A x y new_x N/A N/A N/A 
    Essentially a step function.

    For each `new_x`, finds largest j such that``x[j] < new_x[j]`` and
    returns ``y[j]``.

    Parameters
    ----------
    x : array_like
        Independent values.
    y : array_like
        Dependent values.
    new_x : array_like
        The x values used to calculate the interpolated y.

    Returns
    -------
    block : ndarray
        Return array, of same length as `x_new`.

     N/A TINY 1e-10 N/A indices N/A N/A N/A np searchsorted x N/A new_x TINY 1 N/A indices N/A N/A np atleast_1d N/A N/A N/A N/A np clip indices 0 N/A np Inf astype int N/A new_y N/A N/A np take y indices axis -1 N/A new_y N/A