Module ImportFrom alias Assign NameStore ListLoad Str Import alias Import alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad If BoolOpOr CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr Num CompareNotEq SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Num body Raise Call NameLoad Str If BoolOpOr CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr Num CompareNotEq SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Call NameLoad NameLoad body Raise Call NameLoad Str If CompareEq SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Num body Raise Call NameLoad Str If CompareNotEq SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num body Raise Call NameLoad Str If Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Num keyword Num body Raise Call NameLoad Str decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assert UnaryOpNot NameLoad Return Call NameLoad NameLoad NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr For NameStore NameLoad body If CompareNotEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad decorator_list FunctionDef arguments args defaults body ImportFrom alias Assign NameStore Call NameLoad ListLoad Str Str ListLoad Num Num Assert CompareEq AttributeLoad NameLoad attr ListLoad Str Str Expr Call NameLoad AttributeLoad NameLoad attr ListLoad ListLoad Num Num Expr Call NameLoad AttributeLoad NameLoad attr ListLoad ListLoad Num Assign NameStore Call NameLoad ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num Expr Call NameLoad AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Expr Call NameLoad AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad ImportFrom alias Expr Call NameLoad NameLoad NameLoad ListLoad Str ListLoad ListLoad Num Num Expr Call NameLoad NameLoad NameLoad ListLoad Str ListLoad ListLoad ListLoad Num Expr Call NameLoad NameLoad NameLoad ListLoad Str ListLoad ListLoad Num Num ListLoad Num Num Expr Call NameLoad NameLoad NameLoad ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num Expr Call NameLoad NameLoad NameLoad ListLoad Str ListLoad ListLoad Num Expr Call NameLoad NameLoad NameLoad ListLoad Str ListLoad ListLoad Num ListLoad ListLoad Expr Call NameLoad NameLoad NameLoad ListLoad Str Str ListLoad Expr Call NameLoad NameLoad NameLoad ListLoad Str Str Call AttributeLoad NameLoad attr TupleLoad Num Num Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Call NameLoad ListLoad Str Str ListLoad Num Num Call NameLoad ListLoad Str Str ListLoad Num Num ListLoad Num Assert CompareEq AttributeLoad NameLoad attr ListLoad Str Str ImportFrom alias Expr Call NameLoad AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Expr Call NameLoad AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num ImportFrom alias Expr Call NameLoad NameLoad AttributeLoad NameLoad attr ListLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr ListLoad Call NameLoad ListLoad Str ListLoad Num Call NameLoad ListLoad Str ListLoad Num decorator_list Assign NameStore ListLoad Call NameLoad Str Num Num Call NameLoad Str Num Num Call NameLoad Str Num Num Call NameLoad Str Num Num Call NameLoad Str Num Num Call NameLoad Str Num Num Call NameLoad Str Num Num Call NameLoad Str Num Num Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Assign NameStore NameLoad orelse Assign NameStore NameLoad Return Call NameLoad NameLoad Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad Str attr ListComp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore ListLoad TupleLoad NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad Call NameLoad Str NameLoad TupleLoad NameLoad Call NameLoad Str NameLoad TupleLoad NameLoad Call NameLoad Str NameLoad TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore BinOpSub Call NameLoad NameLoad Call NameLoad NameLoad Raise Call NameLoad Str Call NameLoad NameLoad NameLoad BinOpAdd NameLoad Num Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore Call NameLoad NameLoad ListLoad Str Str Str Assign NameStore ListLoad TupleLoad Str Num Num Str TupleLoad Str Num Num Str TupleLoad AttributeLoad NameLoad attr Num Num Str TupleLoad Str Num Num Str TupleLoad Str Num Num Str TupleLoad Str Num Num Str TupleLoad AttributeLoad NameLoad attr Num Num Str TupleLoad Str Num Num Str TupleLoad Str Num Num Str For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assert Call NameLoad NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assert CompareEq AttributeLoad NameLoad attr Call NameLoad NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assert CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num ImportFrom alias Expr Call NameLoad NameLoad NameLoad Str ListLoad Str Expr Call NameLoad Str ListLoad Str For NameStore TupleLoad ListLoad Str Str ListLoad Str Str body Assign NameStore Call NameLoad Str NameLoad Assert CompareEq Call NameLoad NameLoad Num Assert CompareEq ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad ListLoad Str Str Str Assign NameStore Call NameLoad Str ListLoad Str Assert CompareEq Call NameLoad NameLoad Num Assert CompareEq ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad ListLoad Str Str Str Str Assert CompareEq ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad ListLoad Str Str Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Dict TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad BinOpAdd AttributeLoad NameLoad attr Num keyword NameLoad Assign SubscriptStore NameLoad Index Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad BinOpAdd AttributeLoad NameLoad attr Num keyword NameLoad Assign SubscriptStore NameLoad Index Num Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpMult Num Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpAdd Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpSub Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str SubscriptLoad AttributeLoad NameLoad attr Index Num Return BinOpDiv NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num If Call AttributeLoad NameLoad attr NameLoad body Return BinOpMult SubscriptLoad NameLoad Index Num NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Return BinOpMult NameLoad SubscriptLoad NameLoad Index Num orelse Raise Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index BinOpSub Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore BinOpSub SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr CompareEq NameLoad Num body Raise Call NameLoad Str NameLoad Assign NameStore BinOpAdd UnaryOpUSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num keyword NameLoad Return Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore TupleLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert CompareIn NameLoad AttributeLoad NameLoad attr Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad If NameLoad body If Call NameLoad NameLoad NameLoad body Return NameLoad orelse Assert CompareEq AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num If Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr Num body Raise Call NameLoad Str NameLoad Return Call NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr UnaryOpUSub SubscriptLoad NameLoad Index Num orelse If Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body If CompareNotEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Return NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad If CompareIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad Num Assign SubscriptStore NameLoad Index NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad If BoolOpAnd Call NameLoad NameLoad NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore ListLoad For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body If CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign TupleStore NameStore NameStore NameLoad Return Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad Str NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body ImportFrom alias ImportFrom alias Assign NameStore NameLoad Expr Call NameLoad Call NameLoad ListLoad Str Str ListLoad Num Num ListLoad Str Str ListLoad ListLoad Num Num ListLoad ListLoad Num Expr Call NameLoad NameLoad NameLoad Call NameLoad ListLoad Str Str ListLoad Num Num ListLoad Str Str Expr Call NameLoad Dict Str Num ListLoad Str Str ListLoad ListLoad Num Num ListLoad ListLoad Num Expr Call NameLoad Call NameLoad ListLoad TupleLoad Str Num TupleLoad Str Num ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad Num ListLoad Num Expr Call NameLoad Call NameLoad ListLoad TupleLoad Str Num TupleLoad Str Num ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad Num ListLoad Num Expr Call NameLoad Dict Num Num ListLoad Str Str ListLoad ListLoad Num Num ListLoad ListLoad Num Expr Call NameLoad Call NameLoad ListLoad TupleLoad Num Num TupleLoad Num Num ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad Num ListLoad Num Expr Call NameLoad Call NameLoad ListLoad TupleLoad Str Num TupleLoad Num Num ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad Num ListLoad Num Expr Call NameLoad NameLoad NameLoad Dict Str Num ListLoad Str Str Expr Call NameLoad NameLoad NameLoad Dict Str Num Num Num ListLoad Str Str Expr Call NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num ListLoad Str Str ListLoad ListLoad Num Num ListLoad ListLoad Num Expr Call NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad Num ListLoad Num Expr Call NameLoad Str ListLoad Str Str ListLoad ListLoad Num Num ListLoad ListLoad Num Expr Call NameLoad Str ListLoad Str Str ListLoad ListLoad Num Num ListLoad ListLoad Num Expr Call NameLoad Str ListLoad Str Str ListLoad ListLoad Num Num ListLoad ListLoad Num Expr Call NameLoad Str ListLoad Str Str ListLoad ListLoad Num Num ListLoad ListLoad Num Expr Call NameLoad Str ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad Num ListLoad Num Expr Call NameLoad Str ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad Num ListLoad Num Expr Call NameLoad ListLoad Str Str ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad Num ListLoad Num Expr Call NameLoad NameLoad NameLoad ListLoad Str Dict Str Num ListLoad Str Str Expr Call NameLoad Str ListLoad Str Str ListLoad ListLoad Num BinOpAdd BinOpDiv Num Num Num ListLoad ListLoad BinOpSub Num BinOpDiv Num Num Expr Call NameLoad Str ListLoad Str Str ListLoad ListLoad Num Num ListLoad ListLoad Num Expr Call NameLoad Str ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad Num ListLoad Num Expr Call NameLoad Str ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad ListLoad Num ListLoad Num ListLoad Num Expr Call NameLoad Str ListLoad Str Str ListLoad ListLoad Num Num ListLoad ListLoad Num Expr Call NameLoad Str ListLoad Str Str ListLoad ListLoad Num Num ListLoad ListLoad Num Expr Call NameLoad Str ListLoad Str Str ListLoad ListLoad Num Num ListLoad ListLoad Num Expr Call NameLoad Str ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad Num ListLoad Num Expr Call NameLoad Str ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad Num ListLoad Num Expr Call NameLoad Str ListLoad Str Str Str ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad ListLoad Num ListLoad Num ListLoad Num Expr Call NameLoad Str ListLoad Str Str ListLoad ListLoad Num Num ListLoad ListLoad Num Expr Call NameLoad TupleLoad ListLoad Num Num ListLoad Num ListLoad Str Str ListLoad ListLoad Num Num ListLoad ListLoad Num Expr Call NameLoad TupleLoad ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad Num ListLoad Num ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad Num ListLoad Num Expr Call NameLoad NameLoad NameLoad TupleLoad ListLoad Num Num ListLoad Num ListLoad Num ListLoad Str Str Expr Call NameLoad NameLoad NameLoad TupleLoad ListLoad Num Num ListLoad Str Str Expr Call NameLoad ListLoad Num Num ListLoad Str Str ListLoad ListLoad Num Num ListLoad ListLoad Num Expr Call NameLoad ListLoad ListLoad Num Num ListLoad Num Num ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad Num ListLoad Num Expr Call NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num ListLoad Str Str ListLoad ListLoad Num Num ListLoad ListLoad Num Expr Call NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Str Str ListLoad ListLoad Num Num ListLoad Num Num ListLoad ListLoad Num ListLoad Num Expr Call NameLoad NameLoad NameLoad NameLoad ListLoad Str Str decorator_list Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str ImportFrom alias FunctionDef arguments args defaults body FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad ListLoad Str Str Str decorator_list Expr Call NameLoad NameLoad NameLoad decorator_list
N/A __future__ print_function N/A __all__ N/A LinearConstraint N/A re N/A six N/A numpy np patsy PatsyError patsy.origin Origin patsy.util atleast_2d_column_default repr_pretty_delegate repr_pretty_impl SortAnythingKey no_pickling assert_no_pickling patsy.infix_parser Token Operator ParseNode infix_parse patsy.compat Scanner Mapping LinearConstraint N/A object N/A N/A A linear constraint in matrix form.

    This object represents a linear constraint of the form `Ax = b`.

    Usually you won't be constructing these by hand, but instead get them as
    the return value from :meth:`DesignInfo.linear_constraint`.

    .. attribute:: coefs

       A 2-dimensional ndarray with float dtype, representing `A`.

    .. attribute:: constants

       A 2-dimensional single-column ndarray with float dtype, representing
       `b`.

    .. attribute:: variable_names

       A list of strings giving the names of the variables being
       constrained. (Used only for consistency checking.)
     __init__ N/A N/A self variable_names coefs constants N/A None N/A N/A N/A self variable_names N/A list variable_names N/A N/A self coefs N/A N/A np atleast_2d N/A N/A np asarray coefs dtype float N/A N/A constants None N/A N/A constants N/A N/A np zeros N/A N/A N/A self coefs shape N/A 0 dtype float N/A constants N/A N/A np asarray constants dtype float N/A N/A self constants N/A atleast_2d_column_default constants N/A N/A N/A N/A N/A self constants ndim 2 N/A N/A N/A N/A self constants shape N/A 1 1 N/A N/A N/A ValueError constants is not (convertible to) a column matrix N/A N/A N/A N/A N/A self coefs ndim 2 N/A N/A N/A N/A self coefs shape N/A 1 N/A len variable_names N/A N/A N/A ValueError wrong shape for coefs N/A N/A N/A N/A N/A self coefs shape N/A 0 0 N/A N/A N/A ValueError must have at least one row in constraint matrix N/A N/A N/A N/A N/A self coefs shape N/A 0 N/A N/A N/A self constants shape N/A 0 N/A N/A N/A ValueError shape mismatch between coefs and constants N/A N/A N/A np any N/A N/A np all N/A N/A self coefs 0 axis 1 N/A N/A N/A ValueError can't test a constant constraint N/A N/A __repr__ repr_pretty_delegate _repr_pretty_ N/A N/A self p cycle N/A N/A N/A N/A cycle N/A N/A repr_pretty_impl p self N/A N/A self variable_names N/A self coefs N/A self constants N/A N/A __getstate__ no_pickling combine N/A N/A cls constraints N/A N/A N/A Create a new LinearConstraint by ANDing together several existing
        LinearConstraints.

        :arg constraints: An iterable of LinearConstraint objects. Their
          :attr:`variable_names` attributes must all match.
        :returns: A new LinearConstraint object.
         N/A N/A constraints N/A N/A N/A ValueError no constraints specified N/A variable_names N/A N/A constraints N/A 0 variable_names N/A constraint constraints N/A N/A N/A N/A constraint variable_names variable_names N/A N/A N/A ValueError variable names don't match N/A coefs N/A N/A np row_stack N/A N/A c coefs N/A c constraints N/A constants N/A N/A np row_stack N/A N/A c constants N/A c constraints N/A N/A cls variable_names coefs constants N/A classmethod N/A test_LinearConstraint N/A N/A N/A N/A numpy.testing.utils assert_equal N/A lc N/A LinearConstraint N/A foo bar N/A 1 1 N/A N/A N/A lc variable_names N/A foo bar N/A N/A assert_equal N/A lc coefs N/A N/A 1 1 N/A N/A assert_equal N/A lc constants N/A N/A 0 N/A lc N/A LinearConstraint N/A foo bar N/A N/A 1 1 N/A 2 3 N/A 10 20 N/A N/A assert_equal N/A lc coefs N/A N/A 1 1 N/A 2 3 N/A N/A assert_equal N/A lc constants N/A N/A 10 N/A 20 N/A N/A N/A N/A lc coefs dtype N/A N/A np dtype float N/A N/A N/A N/A lc constants dtype N/A N/A np dtype float nose.tools assert_raises N/A N/A assert_raises ValueError LinearConstraint N/A a N/A N/A 1 2 N/A N/A assert_raises ValueError LinearConstraint N/A a N/A N/A N/A 1 N/A N/A assert_raises ValueError LinearConstraint N/A a N/A N/A 1 2 N/A 3 4 N/A N/A assert_raises ValueError LinearConstraint N/A a b N/A N/A 1 2 N/A 3 4 N/A N/A assert_raises ValueError LinearConstraint N/A a N/A N/A 0 N/A N/A assert_raises ValueError LinearConstraint N/A a N/A N/A 1 N/A N/A N/A N/A assert_raises ValueError LinearConstraint N/A a b N/A N/A N/A assert_raises ValueError LinearConstraint N/A a b N/A N/A np zeros N/A 0 2 N/A N/A assert_no_pickling lc N/A test_LinearConstraint_combine N/A N/A N/A N/A N/A comb N/A N/A LinearConstraint combine N/A N/A LinearConstraint N/A a b N/A 1 0 N/A LinearConstraint N/A a b N/A 0 1 N/A 1 N/A N/A N/A comb variable_names N/A a b numpy.testing.utils assert_equal N/A N/A assert_equal N/A comb coefs N/A N/A 1 0 N/A 0 1 N/A N/A assert_equal N/A comb constants N/A N/A 0 N/A 1 nose.tools assert_raises N/A N/A assert_raises ValueError N/A LinearConstraint combine N/A N/A N/A assert_raises ValueError N/A LinearConstraint combine N/A N/A LinearConstraint N/A a N/A 1 N/A LinearConstraint N/A b N/A 1 N/A N/A _ops N/A N/A Operator , 2 -100 N/A Operator = 2 0 N/A Operator + 1 100 N/A Operator - 1 100 N/A Operator + 2 100 N/A Operator - 2 100 N/A Operator * 2 200 N/A Operator / 2 200 N/A _atomic N/A NUMBER VARIABLE _token_maker N/A N/A type string N/A N/A make_token N/A N/A scanner token_string N/A N/A N/A N/A type __OP__ N/A N/A actual_type token_string N/A N/A actual_type type N/A N/A Token actual_type N/A Origin string N/A N/A N/A scanner match span token_string N/A N/A make_token N/A _tokenize_constraint N/A N/A string variable_names N/A N/A N/A lparen_re \( N/A rparen_re \) N/A op_re N/A N/A | join N/A N/A N/A re escape N/A op token_type N/A op _ops N/A num_re [-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)? N/A whitespace_re \s+ N/A variable_names N/A sorted variable_names key len reverse True N/A variable_re N/A N/A | join N/A N/A N/A re escape n N/A n variable_names N/A lexicon N/A N/A lparen_re N/A _token_maker N/A Token LPAREN string N/A rparen_re N/A _token_maker N/A Token RPAREN string N/A op_re N/A _token_maker __OP__ string N/A variable_re N/A _token_maker VARIABLE string N/A num_re N/A _token_maker NUMBER string N/A whitespace_re None N/A scanner N/A Scanner lexicon N/A N/A tokens leftover N/A N/A scanner scan string N/A leftover N/A N/A offset N/A N/A len string N/A len leftover N/A N/A PatsyError unrecognized token in constraint N/A Origin string offset N/A offset 1 N/A tokens N/A test__tokenize_constraint N/A N/A N/A N/A N/A code 2 * (a + b) = q N/A tokens N/A _tokenize_constraint code N/A a b q N/A expecteds N/A N/A NUMBER 0 1 2 N/A * 2 3 * N/A N/A Token LPAREN 4 5 ( N/A VARIABLE 5 6 a N/A + 7 8 + N/A VARIABLE 9 10 b N/A N/A Token RPAREN 10 11 ) N/A = 12 13 = N/A VARIABLE 14 15 q N/A N/A got expected N/A zip tokens expecteds N/A N/A N/A isinstance got Token N/A N/A N/A got type N/A expected N/A 0 N/A N/A N/A got origin N/A Origin code N/A expected N/A 1 N/A expected N/A 2 N/A N/A N/A got extra N/A expected N/A 3 nose.tools assert_raises N/A N/A assert_raises PatsyError _tokenize_constraint 1 + @b N/A b N/A N/A _tokenize_constraint 1 + @b N/A @b N/A names N/A N/A a aa N/A aa a N/A N/A tokens N/A _tokenize_constraint a aa a names N/A N/A N/A len tokens 3 N/A N/A N/A N/A t extra N/A t tokens N/A a aa a N/A tokens N/A _tokenize_constraint 2 * a[1,1], N/A a[1,1] N/A N/A N/A len tokens 4 N/A N/A N/A N/A t type N/A t tokens N/A NUMBER * VARIABLE , N/A N/A N/A N/A t extra N/A t tokens N/A 2 * a[1,1] , N/A parse_constraint N/A N/A string variable_names N/A N/A N/A N/A infix_parse N/A _tokenize_constraint string variable_names _ops _atomic N/A _EvalConstraint N/A object N/A __init__ N/A N/A self variable_names N/A N/A N/A N/A self _variable_names variable_names N/A N/A self _N N/A len variable_names N/A N/A self _dispatch N/A N/A VARIABLE 0 N/A NUMBER 0 N/A + 1 N/A - 1 N/A + 2 N/A - 2 N/A * 2 N/A / 2 N/A = 2 N/A , 2 N/A self _eval_variable N/A self _eval_number N/A self _eval_unary_plus N/A self _eval_unary_minus N/A self _eval_binary_plus N/A self _eval_binary_minus N/A self _eval_binary_multiply N/A self _eval_binary_div N/A self _eval_binary_eq N/A self _eval_binary_comma N/A is_constant N/A N/A self coefs N/A N/A N/A N/A N/A np all N/A N/A coefs N/A N/A self _N 0 N/A _eval_variable N/A N/A self tree N/A N/A N/A var N/A N/A tree token extra N/A coefs N/A N/A np zeros N/A N/A N/A self _N 1 dtype float N/A N/A coefs N/A N/A N/A N/A self _variable_names index var 1 N/A coefs N/A _eval_number N/A N/A self tree N/A N/A N/A coefs N/A N/A np zeros N/A N/A N/A self _N 1 dtype float N/A N/A coefs N/A -1 N/A float N/A N/A tree token extra N/A coefs N/A _eval_unary_plus N/A N/A self tree N/A N/A N/A N/A N/A self eval N/A N/A tree args N/A 0 N/A _eval_unary_minus N/A N/A self tree N/A N/A N/A N/A -1 N/A N/A self eval N/A N/A tree args N/A 0 N/A _eval_binary_plus N/A N/A self tree N/A N/A N/A N/A N/A N/A self eval N/A N/A tree args N/A 0 N/A N/A self eval N/A N/A tree args N/A 1 N/A _eval_binary_minus N/A N/A self tree N/A N/A N/A N/A N/A N/A self eval N/A N/A tree args N/A 0 N/A N/A self eval N/A N/A tree args N/A 1 N/A _eval_binary_div N/A N/A self tree N/A N/A N/A left N/A N/A self eval N/A N/A tree args N/A 0 N/A right N/A N/A self eval N/A N/A tree args N/A 1 N/A N/A N/A N/A self is_constant right N/A N/A N/A PatsyError Can't divide by a variable in a linear constraint N/A N/A tree args N/A 1 N/A N/A left N/A right N/A -1 N/A _eval_binary_multiply N/A N/A self tree N/A N/A N/A left N/A N/A self eval N/A N/A tree args N/A 0 N/A right N/A N/A self eval N/A N/A tree args N/A 1 N/A N/A N/A self is_constant left N/A N/A N/A N/A left N/A -1 right N/A N/A N/A N/A self is_constant right N/A N/A N/A left N/A right N/A -1 N/A N/A N/A PatsyError Can't multiply one variable by another in a linear constraint tree N/A _eval_binary_eq N/A N/A self tree N/A N/A N/A args N/A list N/A tree args N/A constraints N/A N/A N/A i arg N/A enumerate args N/A N/A N/A N/A arg type = N/A N/A N/A N/A constraints append N/A N/A self eval arg constraint True N/A N/A args N/A i N/A N/A arg args N/A N/A 1 i N/A left N/A N/A self eval N/A args N/A 0 N/A right N/A N/A self eval N/A args N/A 1 N/A coefs N/A N/A left N/A N/A self _N N/A right N/A N/A self _N N/A N/A N/A np all N/A coefs 0 N/A N/A N/A PatsyError no variables appear in constraint tree N/A constant N/A N/A N/A left N/A -1 N/A right N/A -1 N/A constraint N/A LinearConstraint N/A self _variable_names coefs constant N/A N/A N/A constraints append constraint N/A N/A N/A LinearConstraint combine constraints N/A _eval_binary_comma N/A N/A self tree N/A N/A N/A left N/A N/A self eval N/A N/A tree args N/A 0 constraint True N/A right N/A N/A self eval N/A N/A tree args N/A 1 constraint True N/A N/A N/A LinearConstraint combine N/A left right N/A eval N/A N/A self tree constraint N/A False N/A N/A key N/A N/A tree type N/A len N/A tree args N/A N/A key N/A self _dispatch N/A val N/A N/A N/A self _dispatch N/A key tree N/A constraint N/A N/A N/A isinstance val LinearConstraint N/A N/A val N/A N/A N/A N/A val size N/A N/A self _N 1 N/A N/A N/A np all N/A N/A val N/A N/A self _N 0 N/A N/A N/A PatsyError term is constant, with no variables tree N/A N/A LinearConstraint N/A self _variable_names N/A val N/A N/A self _N N/A N/A val N/A -1 N/A N/A N/A isinstance val LinearConstraint N/A N/A N/A PatsyError unexpected constraint object tree N/A val N/A N/A linear_constraint N/A N/A constraint_like variable_names N/A N/A N/A This is the internal interface implementing
    DesignInfo.linear_constraint, see there for docs. N/A N/A isinstance constraint_like LinearConstraint N/A N/A N/A N/A constraint_like variable_names variable_names N/A N/A N/A ValueError N/A LinearConstraint has wrong variable_names (got %r, expected %r) N/A N/A constraint_like variable_names variable_names N/A constraint_like N/A N/A isinstance constraint_like Mapping N/A N/A coefs N/A N/A np zeros N/A N/A len constraint_like N/A len variable_names dtype float N/A constants N/A N/A np zeros N/A len constraint_like N/A used N/A set N/A N/A i N/A name value N/A enumerate N/A N/A six iteritems constraint_like N/A N/A N/A name variable_names N/A N/A idx N/A N/A variable_names index name N/A N/A N/A isinstance name N/A six integer_types N/A N/A idx name N/A N/A N/A ValueError N/A unrecognized variable name/index %r N/A name N/A N/A idx used N/A N/A N/A ValueError N/A duplicated constraint on %r N/A N/A variable_names N/A idx N/A N/A N/A used add idx N/A N/A coefs N/A N/A i idx 1 N/A N/A constants N/A i value N/A N/A LinearConstraint variable_names coefs constants N/A N/A isinstance constraint_like str N/A N/A constraint_like N/A constraint_like N/A N/A N/A isinstance constraint_like list constraint_like N/A isinstance N/A constraint_like N/A 0 str N/A N/A constraints N/A N/A code constraint_like N/A N/A N/A N/A isinstance code str N/A N/A N/A ValueError N/A expected a string, not %r N/A code N/A tree N/A parse_constraint code variable_names N/A evaluator N/A _EvalConstraint variable_names N/A N/A N/A constraints append N/A N/A evaluator eval tree constraint True N/A N/A N/A LinearConstraint combine constraints N/A N/A isinstance constraint_like tuple N/A N/A N/A N/A len constraint_like 2 N/A N/A N/A ValueError constraint tuple must have length 2 N/A N/A coef constants constraint_like N/A N/A LinearConstraint variable_names coef constants N/A coefs N/A N/A np asarray constraint_like dtype float N/A N/A LinearConstraint variable_names coefs N/A _check_lincon N/A N/A input varnames coefs constants N/A N/A numpy.testing.utils assert_equal N/A got N/A linear_constraint input varnames N/A N/A print got got N/A expected N/A LinearConstraint varnames coefs constants N/A N/A print expected expected N/A N/A assert_equal N/A got variable_names N/A expected variable_names N/A N/A assert_equal N/A got coefs N/A expected coefs N/A N/A assert_equal N/A got constants N/A expected constants N/A N/A assert_equal N/A N/A got coefs dtype N/A N/A np dtype float N/A N/A assert_equal N/A N/A got constants dtype N/A N/A np dtype float N/A test_linear_constraint N/A N/A N/A N/A nose.tools assert_raises patsy.compat OrderedDict N/A t _check_lincon N/A N/A t N/A LinearConstraint N/A a b N/A 2 3 N/A a b N/A N/A 2 3 N/A N/A 0 N/A N/A assert_raises ValueError linear_constraint N/A LinearConstraint N/A b a N/A 2 3 N/A a b N/A N/A t N/A a 2 N/A a b N/A N/A 1 0 N/A N/A 2 N/A N/A t N/A OrderedDict N/A N/A a 2 N/A b 3 N/A a b N/A N/A 1 0 N/A 0 1 N/A N/A 2 N/A 3 N/A N/A t N/A OrderedDict N/A N/A a 2 N/A b 3 N/A b a N/A N/A 0 1 N/A 1 0 N/A N/A 2 N/A 3 N/A N/A t N/A 0 2 N/A a b N/A N/A 1 0 N/A N/A 2 N/A N/A t N/A OrderedDict N/A N/A 0 2 N/A 1 3 N/A a b N/A N/A 1 0 N/A 0 1 N/A N/A 2 N/A 3 N/A N/A t N/A OrderedDict N/A N/A a 2 N/A 1 3 N/A a b N/A N/A 1 0 N/A 0 1 N/A N/A 2 N/A 3 N/A N/A assert_raises ValueError linear_constraint N/A q 1 N/A a b N/A N/A assert_raises ValueError linear_constraint N/A a 0 1 2 N/A a b N/A N/A t N/A N/A np array N/A 2 3 N/A a b N/A N/A 2 3 N/A N/A 0 N/A N/A t N/A N/A np array N/A N/A 2 3 N/A 4 5 N/A a b N/A N/A 2 3 N/A 4 5 N/A N/A 0 N/A 0 N/A N/A t a = 2 N/A a b N/A N/A 1 0 N/A N/A 2 N/A N/A t a - 2 N/A a b N/A N/A 1 0 N/A N/A 2 N/A N/A t a + 1 = 3 N/A a b N/A N/A 1 0 N/A N/A 2 N/A N/A t a + b = 3 N/A a b N/A N/A 1 1 N/A N/A 3 N/A N/A t a = 2, b = 3 N/A a b N/A N/A 1 0 N/A 0 1 N/A N/A 2 N/A 3 N/A N/A t b = 3, a = 2 N/A a b N/A N/A 0 1 N/A 1 0 N/A N/A 3 N/A 2 N/A N/A t N/A a = 2 b = 3 N/A a b N/A N/A 1 0 N/A 0 1 N/A N/A 2 N/A 3 N/A N/A assert_raises ValueError linear_constraint N/A a N/A b 0 N/A a b N/A N/A t 2 * (a + b/3) + b + 2*3/4 = 1 + 2*3 N/A a b N/A N/A 2 N/A N/A 2.0 3 1 N/A N/A N/A 7 N/A 6.0 4 N/A N/A t +2 * -a N/A a b N/A N/A -2 0 N/A N/A 0 N/A N/A t a - b, a + b = 2 N/A a b N/A N/A 1 -1 N/A 1 1 N/A N/A 0 N/A 2 N/A N/A t a = 1, a = 2, a = 3 N/A a b N/A N/A 1 0 N/A 1 0 N/A 1 0 N/A N/A 1 N/A 2 N/A 3 N/A N/A t a * 2 N/A a b N/A N/A 2 0 N/A N/A 0 N/A N/A t -a = 1 N/A a b N/A N/A -1 0 N/A N/A 1 N/A N/A t (2 + a - a) * b N/A a b N/A N/A 0 2 N/A N/A 0 N/A N/A t a = 1 = b N/A a b N/A N/A 1 0 N/A 0 -1 N/A N/A 1 N/A -1 N/A N/A t a = (1 = b) N/A a b N/A N/A 0 -1 N/A 1 0 N/A N/A -1 N/A 1 N/A N/A t a = 1, a = b = c N/A a b c N/A N/A 1 0 0 N/A 1 -1 0 N/A 0 1 -1 N/A N/A 1 N/A 0 N/A 0 N/A N/A t a + 1 = 2 N/A a a + 1 N/A N/A 0 1 N/A N/A 2 N/A N/A t N/A N/A 10 20 N/A 30 N/A a b N/A N/A 10 20 N/A N/A 30 N/A N/A t N/A N/A N/A 10 20 N/A 20 40 N/A N/A 30 N/A 35 N/A a b N/A N/A 10 20 N/A 20 40 N/A N/A 30 N/A 35 N/A N/A assert_raises ValueError linear_constraint N/A N/A 1 0 N/A 0 N/A 0 N/A a b N/A N/A assert_raises ValueError linear_constraint N/A N/A 1 0 N/A a b N/A N/A t N/A 10 20 N/A a b N/A N/A 10 20 N/A N/A 0 N/A N/A t N/A N/A 10 20 N/A 20 40 N/A a b N/A N/A 10 20 N/A 20 40 N/A N/A 0 N/A 0 N/A N/A t N/A N/A np array N/A 10 20 N/A a b N/A N/A 10 20 N/A N/A 0 N/A N/A t N/A N/A np array N/A N/A 10 20 N/A 20 40 N/A a b N/A N/A 10 20 N/A 20 40 N/A N/A 0 N/A 0 N/A N/A assert_raises ValueError linear_constraint None N/A a b N/A N/A _parse_eval_error_tests N/A a + <f>oo a = 1, <1 = 1>, b = 1 a = 1, <b * 2 - b + (-2/2 * b)> a = 1, <1>, b = 2 a = 1, <2 * b = b + b>, c a + <a * b> + c a + 2 / <b> + c a = 1, 2 * <(a = b)>, c a = 1, a + <(a = b)>, c a = 1, <(a, b)> + 2, c patsy.parse_formula _parsing_error_test test_eval_errors N/A N/A N/A N/A doit N/A N/A bad_code N/A N/A N/A N/A linear_constraint bad_code N/A a b c N/A N/A N/A _parsing_error_test doit _parse_eval_error_tests N/A