Module Import alias Import alias Import alias ImportFrom alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam defaults NameLoad body Global identifier Assign NameStore NameLoad decorator_list FunctionDef arguments args defaults body Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam defaults NameLoad body Expr Str Global identifier Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpMod Str AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Raise Call NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Global identifier identifier Import alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Global identifier identifier Import alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Global identifier identifier Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert UnaryOpNot AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assert AttributeLoad NameLoad attr If CompareLt NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr BinOpSub NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Pass decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return TupleLoad NameLoad TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp TupleLoad Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return TupleLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Dict NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return TupleLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Dict NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body While CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad NameLoad body Assert CompareEq AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareIsNot NameLoad NameLoad body If BoolOpOr Call NameLoad NameLoad NameLoad CompareIs Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad If BoolOpOr CompareIs NameLoad NameLoad BoolOpAnd CompareEq Call NameLoad AttributeLoad NameLoad attr Num CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot NameLoad body Return For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad ListComp TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameStore NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num Str Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad Str attr NameLoad Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call AttributeLoad Call NameLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BoolOpOr AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Pass Return Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareGt NameLoad Num body Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body If CompareGt NameLoad Num body Return Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot NameLoad body If CompareIn TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr BoolOpOr AttributeLoad NameLoad attr NameLoad CompareIsNot NameLoad NameLoad body Return NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Return NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Return NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Return Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr CompareNotIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore IfExp CompareIsNot AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult ListLoad NameLoad BinOpAdd Call NameLoad NameLoad Num Assign SubscriptStore NameLoad Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body If CompareIs SubscriptLoad NameLoad Index NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad AugAssignAdd NameStore Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Pass orelse For NameStore NameLoad body If CompareNotIn NameLoad Call AttributeLoad NameLoad attr body If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad AugAssignAdd NameStore Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num If NameLoad body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TryFinally body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad TryFinally body With Call AttributeLoad NameLoad attr NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad AugAssignAdd NameStore Num finalbody Expr Call NameLoad AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareGt NameLoad Num body For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareLt NameLoad NameLoad body For NameStore NameLoad body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Return For NameStore NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Continue Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TryFinally body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore IfExp CompareIsNot NameLoad NameLoad NameLoad Call NameLoad If CompareIs NameLoad NameLoad body TryExcept body Assign NameStore SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Pass Assign SubscriptStore NameLoad Index NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryFinally body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad TryFinally body Return Call AttributeLoad NameLoad attr NameLoad NameLoad finalbody Expr Call NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BoolOpOr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert Call NameLoad NameLoad NameLoad Str TryFinally body Return Call AttributeLoad NameLoad attr NameLoad finalbody If BoolOpAnd NameLoad CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryFinally body If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpNot BoolOpAnd CompareIs NameLoad NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryFinally body If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad TryExcept body Assign NameStore SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Return SubscriptLoad AttributeLoad NameLoad attr Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BoolOpOr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BoolOpOr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr Assign NameStore BoolOpOr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Return Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Return Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore Call AttributeLoad NameLoad attr body If BoolOpOr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore ListLoad If CompareIsNot NameLoad NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad orelse For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad While NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Num If CompareIn TupleLoad NameLoad NameLoad NameLoad body Continue Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad If BoolOpOr CompareIs NameLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad If BoolOpAnd UnaryOpNot NameLoad CompareIsNot NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot NameLoad body Print BinOpAdd BinOpAdd Str Str Str Return Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Dict Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Call AttributeLoad NameLoad attr body For NameStore Call NameLoad NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad Str body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad orelse If Call NameLoad NameLoad Str body Assign NameStore BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad ListLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameLoad Return Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Num For TupleStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Print NameLoad Print BinOpMod Str NameLoad Print BinOpMod Str NameLoad Print AugAssignAdd NameStore NameLoad Print BinOpMod Str Call NameLoad NameLoad Print BinOpMod Str NameLoad Print BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Dict NameLoad NameLoad Str body Expr Str ImportFrom alias Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad TryExcept body Assign NameStore SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign NameStore IfExp CompareIsNot AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryFinally body If CompareIsNot NameLoad NameLoad body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Dict NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Return NameLoad finalbody If NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Return Call AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list
N/A N/A time N/A itertools N/A os datetime datetime N/A cython N/A warnings N/A sys common DIRTY_FLAGS N/A io N/A DIRTY_FLAGS_NONE N/A N/A cython declare int N/A DIRTY_FLAGS NONE N/A DIRTY_FLAGS_ALL N/A N/A cython declare int N/A DIRTY_FLAGS ALL N/A DIRTY_FLAGS_TIME N/A N/A cython declare int N/A DIRTY_FLAGS TIME N/A _python_version N/A N/A cython declare int N/A N/A sys version_info N/A 0 N/A MDFNode None N/A _now_node None N/A _pickle_context None N/A _unpickle_context None N/A _pickle_shift_set None N/A _unpickle_shift_set None N/A _profiling_enabled N/A N/A cython declare int False enable_profiling N/A N/A enable N/A True N/A N/A _profiling_enabled N/A _profiling_enabled enable N/A _profiling_is_enabled N/A N/A N/A N/A N/A _profiling_enabled N/A N/A _allow_duplicate_nodes N/A N/A cython declare int False allow_duplicate_nodes N/A N/A enable N/A True N/A N/A 
    Nodes with the same full name (including module and class names)
    are not allowed because it means they can't be differentiated
    correctly when unpickling.
    
    However when reloading modules duplicate nodes occur because
    existing nodes are redeclared. This is something that only
    happens during development, and so this function is here to
    allow that, but the default is not to allow it.
     N/A _allow_duplicate_nodes N/A _allow_duplicate_nodes enable N/A DuplicateNodeError N/A Exception N/A __init__ N/A N/A self node N/A N/A N/A N/A N/A Exception __init__ self N/A N/A A node named '%s' already exists
 N/A node name If you are reloading a module and want duplicate nodes to be allowed call mdf.allow_duplicate_nodes(). N/A N/A NoCurrentContextError N/A RuntimeError N/A __init__ N/A N/A self N/A N/A N/A N/A N/A RuntimeError __init__ self No current context N/A N/A Cookie N/A object N/A __init__ N/A N/A self thread_id prev_context N/A N/A N/A N/A self thread_id thread_id N/A N/A self prev_context prev_context N/A N/A MDFNodeBase N/A object N/A N/A 
    Trivial class that MDFNode implements.
    This is purely so cython can optimize some access
    of node properties and methods from this file without introducing
    a circular module dependency.
     _add_dependency N/A N/A self ctx called_node called_ctx N/A N/A N/A N/A NotImplementedError N/A get_dependencies N/A N/A self ctx N/A N/A N/A N/A NotImplementedError N/A get_alt_context N/A N/A self ctx N/A N/A N/A N/A NotImplementedError N/A get_value N/A N/A self ctx thread_id N/A None N/A N/A N/A NotImplementedError N/A has_value N/A N/A self ctx N/A N/A N/A N/A NotImplementedError N/A set_dirty N/A N/A self ctx flags N/A N/A DIRTY_FLAGS ALL N/A N/A N/A NotImplementedError N/A clear N/A N/A self ctx N/A N/A N/A N/A NotImplementedError N/A clear_value N/A N/A self ctx N/A N/A N/A N/A NotImplementedError N/A set_value N/A N/A self ctx value N/A N/A N/A N/A NotImplementedError N/A set_override N/A N/A self ctx override_node N/A N/A N/A N/A NotImplementedError N/A N/A _lazy_imports N/A N/A N/A N/A N/A MDFNode _now_node N/A nodes N/A MDFNode N/A nodes MDFNode N/A _now_node N/A nodes _now_node N/A _pickle_context _unpickle_context N/A ctx_pickle N/A _pickle_context N/A ctx_pickle _pickle_context N/A _unpickle_context N/A ctx_pickle _unpickle_context N/A _pickle_shift_set _unpickle_shift_set N/A _pickle_shift_set N/A ctx_pickle _pickle_shift_set N/A _unpickle_shift_set N/A ctx_pickle _unpickle_shift_set N/A Timer N/A object N/A N/A object for collecting metrics about nodes and builders __init__ N/A N/A self node_or_builder N/A N/A N/A N/A self node_or_builder node_or_builder N/A N/A self num_calls 0 N/A N/A self total_time 0.0 N/A N/A self is_running False N/A start N/A N/A self N/A N/A N/A N/A N/A self is_running N/A N/A self num_calls 1 N/A N/A self is_running True N/A N/A self started_time N/A N/A time clock N/A resume N/A N/A self N/A N/A N/A N/A N/A self is_running N/A N/A N/A self started_time N/A N/A time clock N/A N/A self is_running True N/A stop N/A N/A self stop_time N/A N/A N/A N/A self is_running N/A N/A stop_time 0.0 N/A N/A stop_time N/A N/A time clock N/A N/A self total_time N/A stop_time N/A self started_time N/A N/A self is_running False N/A N/A NodeOrBuilderTimer N/A object N/A N/A object with with semantics for timing a node or builder __init__ N/A N/A self ctx node_or_builder N/A N/A N/A N/A self ctx ctx N/A N/A self node_or_builder node_or_builder N/A __enter__ N/A N/A self N/A N/A N/A N/A N/A N/A self ctx _start_timer N/A self node_or_builder N/A __exit__ N/A N/A self exc_type exc_value traceback N/A N/A N/A N/A N/A N/A self ctx _stop_timer N/A N/A NullTimer N/A N/A N/A used in place of NodeOrBuilderTimer when profiling isn't enabled __enter__ N/A N/A self N/A N/A N/A self N/A __exit__ N/A N/A self exc_type exc_value traceback N/A N/A N/A N/A N/A N/A _null_timer N/A NullTimer N/A _all_nodes N/A N/A cython declare dict N/A N/A _current_contexts N/A N/A cython declare dict N/A N/A _ctx_id_counter N/A N/A itertools count NowNodeValue N/A N/A N/A 
    the now node is special as it's the only node that may be shifted
    on that remains mutable after the shift.
    Because of that, each context shifted on now needs a unique object
    wrapping the now value - even for shifts that initially have the
    same date.
     __init__ N/A N/A self value N/A N/A N/A N/A self value value N/A __reduce__ N/A N/A self N/A N/A N/A support for pickling N/A N/A _nownodevalue_unpickle N/A N/A self value None None None N/A __str__ N/A N/A self N/A N/A N/A N/A N/A N/A self value strftime %Y-%m-%d N/A N/A _nownodevalue_unpickle N/A N/A value N/A N/A N/A N/A NowNodeValue value N/A _make_shift_key N/A N/A shift_set N/A N/A N/A key N/A N/A N/A id node value N/A N/A node value N/A N/A shift_set iteritems N/A N/A N/A key sort N/A N/A tuple key N/A ShiftSet N/A dict N/A N/A 
    dict subclass that encapsulates the net shift set for a given
    shift set and the context it's being applied to.
    
    This is used as an optimization when shifting contexts as part of
    an mdf graph to avoid having to recompute the shift key on each
    iteration. 

    See also :py:func:`make_shift_key` and :py:func:`shift`.
     __init__ N/A N/A self shift_set N/A N/A N/A N/A N/A dict __init__ self shift_set N/A N/A _now_node self N/A N/A now_value N/A self N/A _now_node N/A N/A N/A isinstance now_value NowNodeValue N/A N/A N/A self N/A _now_node N/A NowNodeValue now_value N/A N/A self _shift_keys N/A N/A __reduce__ N/A N/A self N/A N/A N/A support for pickling N/A N/A _unpickle_shift_set N/A _pickle_shift_set self None None None N/A _get_shift_key N/A N/A self ctx N/A N/A N/A N/A N/A N/A N/A self _shift_keys N/A N/A ctx _id_obj N/A N/A N/A KeyError N/A N/A N/A net_shift_set N/A N/A cython declare dict N/A net_shift_set N/A dict N/A ctx _shift_set N/A N/A N/A net_shift_set update self N/A shift_key N/A _make_shift_key net_shift_set N/A N/A N/A self _shift_keys N/A N/A ctx _id_obj shift_key N/A shift_key N/A N/A MDFContext N/A object N/A N/A 
    Nodes on their own don't have values, they are just the things
    that can calculate values.

    Nodes only have values *in a context*.

    Contexts can be thought of as containers for values of nodes.
     N/A _dot_colors N/A node nownode queuenode varnode shiftnode headnode edge nowedge varedge shiftedge context module0 module1 white darkorchid1 darksalmon deepskyblue gold olivedrab3 black darkorchid4 deepskyblue4 gold4 grey90 grey81 grey72 __init__ N/A N/A self now _shift_parent _shift_set _cache_shifted N/A None None N/A True N/A N/A 
        Initializes a new context with :py:func:`now` set to now (datetime).
         N/A N/A now None N/A N/A now N/A N/A datetime now N/A N/A N/A self _init now _shift_parent _shift_set _cache_shifted N/A __reduce__ N/A N/A self N/A N/A N/A support for pickling N/A N/A _unpickle_context N/A _pickle_context self None None None N/A _init N/A N/A self now _shift_parent _shift_set _cache_shifted N/A None N/A True N/A N/A 
        _shift_parent: context this context is a shift of (shifting)
        _shift_target: node to be shifted node when _shift_parent is set
        _shift_value: value of shifted node when _shift_parent is set
         N/A N/A self _finalized False N/A N/A self _id N/A self _id_obj N/A next _ctx_id_counter N/A N/A self _now now N/A N/A self _incrementally_updated_nodes N/A N/A N/A self _has_incrementally_updated_nodes False N/A N/A self _nodes_requiring_set_date_callback N/A N/A N/A self _has_nodes_requiring_set_date_callback False N/A N/A self _node_eval_stack N/A cqueue N/A N/A self _timers N/A N/A N/A self _timer_stack N/A N/A N/A self _parent None N/A node N/A N/A cython declare MDFNodeBase N/A parent N/A N/A cython declare MDFContext N/A parent _shift_parent N/A N/A parent None N/A N/A N/A N/A parent _parent None N/A N/A parent N/A parent _parent N/A N/A self _parent parent N/A N/A self _shifted_cache N/A N/A N/A self _shifted_contexts N/A N/A N/A self _all_child_contexts N/A N/A N/A self _shift_set N/A N/A N/A self _is_shift_of_cache N/A N/A N/A self _shift_key N/A tuple N/A N/A self _shift_key_set N/A set N/A N/A N/A self _parent None N/A N/A N/A N/A N/A self _parent _all_child_contexts N/A N/A self _id_obj self N/A N/A _shift_parent _shift_set N/A N/A N/A N/A _shift_parent _now now Can't shift from a context with a different date N/A N/A N/A N/A self _shift_set update N/A _shift_parent _shift_set N/A N/A N/A N/A self _shift_set update _shift_set N/A N/A self _shift_key N/A _make_shift_key N/A self _shift_set N/A N/A self _shift_key_set N/A set N/A self _shift_key N/A _cache_shifted N/A N/A N/A N/A parent _shifted_cache N/A N/A self _shift_key self N/A N/A N/A parent _shifted_contexts N/A self None N/A N/A node value N/A N/A N/A self _shift_set iteritems N/A N/A N/A node _now_node N/A N/A N/A N/A isinstance value MDFNode N/A N/A N/A node get_alt_context self self N/A N/A N/A self N/A node value N/A N/A N/A _shift_parent None N/A N/A N/A len N/A self _shift_set 1 N/A _now_node N/A self _shift_set N/A N/A N/A self N/A _now_node N/A N/A N/A self _shift_set get _now_node N/A self _now N/A N/A self _finalized True N/A N/A save N/A io save_context N/A load N/A staticmethod N/A io load_context get_id N/A N/A self N/A N/A N/A returns a unique id for this context N/A N/A self _id N/A clear N/A N/A self N/A N/A N/A 
        clears all cached data for this context
         N/A node N/A N/A _all_nodes itervalues N/A N/A N/A N/A node clear self N/A N/A N/A N/A self _incrementally_updated_nodes clear N/A N/A self _has_incrementally_updated_nodes False N/A N/A N/A N/A self _nodes_requiring_set_date_callback clear N/A N/A self _has_nodes_requiring_set_date_callback False N/A shifted_ctx N/A N/A N/A self _shifted_cache itervalues N/A N/A N/A N/A shifted_ctx clear N/A N/A N/A N/A self _shifted_cache clear N/A N/A N/A N/A self _shifted_contexts clear N/A N/A N/A N/A self _all_child_contexts clear N/A N/A N/A N/A self _is_shift_of_cache clear N/A N/A self _node_eval_stack N/A cqueue N/A __del__ N/A N/A self N/A N/A N/A N/A _all_nodes N/A N/A N/A node N/A N/A _all_nodes itervalues N/A N/A N/A N/A node clear self N/A __str__ N/A N/A self N/A N/A N/A N/A self _shift_set N/A N/A shifts N/A sorted N/A N/A N/A node name node shift N/A N/A node shift N/A N/A N/A self _shift_set items N/A shifts N/A N/A node shift N/A N/A name node shift shifts N/A shifts_strs N/A N/A N/A node value shifts N/A N/A N/A isinstance value MDFNode N/A N/A value N/A N/A N/A N/A value name rsplit . N/A -1 N/A N/A isinstance value datetime N/A N/A value N/A N/A value strftime %Y-%m-%d N/A value N/A str value N/A N/A N/A len value 10 N/A N/A value N/A N/A value N/A 10 ... N/A shifted_name N/A N/A N/A N/A node name rsplit . N/A -1 N/A N/A N/A shifts_strs append N/A %s=%s N/A shifted_name value N/A N/A <ctx %d: %s [%s]> N/A N/A self _id N/A N/A N/A self _now strftime %Y-%m-%d N/A N/A ,  join shifts_strs N/A N/A <ctx %d: %s> N/A N/A self _id N/A N/A N/A self _now strftime %Y-%m-%d N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s at %d> N/A N/A N/A N/A str self strip <> N/A id self N/A _shift N/A N/A self shift_set_ cache_context N/A True N/A N/A 
        see shift - this is the implementation called from C, split
        out so other C functions can call this directly
         N/A N/A shift_set_ N/A N/A self N/A shift_set N/A N/A cython declare ShiftSet N/A N/A N/A isinstance shift_set_ ShiftSet N/A N/A shift_set N/A ShiftSet shift_set_ N/A N/A shift_set shift_set_ N/A parent N/A N/A cython declare MDFContext N/A parent N/A N/A self _parent self N/A N/A N/A shift_key N/A N/A shift_set _get_shift_key self N/A N/A N/A parent _shifted_cache N/A shift_key N/A N/A N/A KeyError N/A N/A N/A N/A MDFContext N/A self _now _shift_parent self _shift_set shift_set _cache_shifted cache_context N/A shift N/A N/A self shift_set cache_context N/A True N/A N/A 
        create a new context linked to this context, but
        with nodes set to specific values.
        
        ``shift_set`` is a dictionary of nodes to values.
        The returned shifted context will have each node
        in the dictionary set to its corresponding value.

        If the same shift set is used several times a `ShiftSet`
        object may be used instead of a dictionary which will
        be slightly faster. See :py:func:`make_shift_set`.

        If a value is an MDFNode then it will be applied
        as an override to the target node.

        If a context has already been created with this
        shift that existing context is returned instead.

        Shifted contexts are read-only.

        If cache_context is True the shifted context will be
        cached and if :py:meth:`shift` is called again with the same
        target and value the cached context will be returned.
        The exception to this is if ``target`` is :py:func:`now`, in 
        which case a new shifted context is returned each time.
         N/A N/A N/A self _shift shift_set cache_context N/A get_parent N/A N/A self N/A N/A N/A N/A self _parent N/A get_shift_set N/A N/A self N/A N/A N/A N/A self _shift_set N/A get_shifted_contexts N/A N/A self N/A N/A N/A N/A _python_version 2 N/A N/A N/A list N/A N/A N/A self _shifted_contexts keys N/A N/A N/A N/A self _shifted_contexts keys N/A iter_shifted_contexts N/A N/A self N/A N/A N/A N/A _python_version 2 N/A N/A N/A N/A N/A self _shifted_contexts keys N/A N/A N/A N/A self _shifted_contexts iterkeys N/A register_node N/A N/A cls node N/A N/A N/A N/A _allow_duplicate_nodes N/A N/A N/A N/A N/A node name N/A node is_bound _all_nodes N/A N/A N/A DuplicateNodeError node N/A N/A _all_nodes N/A N/A N/A node name N/A node is_bound node N/A classmethod unregister_node N/A N/A cls node N/A N/A N/A N/A N/A _all_nodes pop N/A N/A node name N/A node is_bound None N/A classmethod now N/A N/A self N/A N/A N/A see get_date N/A N/A N/A self get_date N/A property now_setter N/A N/A self value N/A N/A N/A see set_date N/A N/A N/A self set_date value N/A N/A now setter get_date N/A N/A self N/A N/A N/A 
        returns the current date set on this context.

        This is equivalent to getting the value of the
        :py:func:`now` node in this context.
         N/A N/A self _now N/A is_shift_of N/A N/A self other N/A N/A N/A 
        returns True if this context's shift set is a super-set of
        the other context's shift set
         N/A N/A N/A N/A N/A self _is_shift_of_cache N/A N/A other _id_obj N/A N/A N/A KeyError N/A N/A N/A N/A N/A N/A self _parent N/A N/A other _parent other N/A self other N/A N/A False N/A self_key N/A self _shift_key_set N/A other_key N/A other _shift_key_set N/A N/A self_key other_key N/A N/A N/A N/A self _is_shift_of_cache N/A N/A other _id_obj True N/A N/A N/A other _is_shift_of_cache N/A N/A self _id_obj True N/A True N/A N/A N/A self_key issuperset other_key N/A N/A N/A N/A self _is_shift_of_cache N/A N/A other _id_obj True N/A N/A N/A other _is_shift_of_cache N/A N/A self _id_obj False N/A True N/A N/A N/A self _is_shift_of_cache N/A N/A other _id_obj False N/A False N/A _set_date N/A N/A self date N/A N/A N/A 
        implementation for set_date
         N/A N/A isinstance date NowNodeValue N/A N/A tmp N/A N/A cython declare NowNodeValue N/A tmp date N/A date N/A tmp value N/A N/A date N/A self _now N/A N/A N/A prev_date N/A self _now N/A N/A N/A self _shift_set N/A _now_node N/A self _shift_set N/A N/A N/A Exception Can't change the date on a shifted context N/A ctx N/A N/A cython declare MDFContext N/A parent N/A N/A cython declare MDFContext N/A prev_ctx N/A N/A cython declare MDFContext N/A shifted_ctx N/A N/A cython declare MDFContext N/A cookie N/A N/A cython declare Cookie N/A node N/A N/A cython declare MDFNodeBase N/A cookie N/A N/A self _activate None None N/A thread_id N/A cookie thread_id N/A prev_ctx N/A cookie prev_context N/A N/A N/A self _deactivate cookie N/A parent N/A N/A N/A self _parent None N/A self _parent self N/A all_shifted_contexts N/A N/A parent get_shifted_contexts N/A all_contexts N/A N/A cython declare list N/A all_contexts N/A N/A None N/A N/A len all_shifted_contexts 1 N/A N/A all_contexts N/A 0 self N/A num_contexts N/A N/A cython declare int N/A num_contexts 1 N/A contexts_with_set_date_callbacks N/A N/A cython declare list N/A N/A have_on_set_date_callbacks N/A N/A cython declare int False N/A N/A self _has_nodes_requiring_set_date_callback N/A N/A N/A N/A contexts_with_set_date_callbacks append self N/A have_on_set_date_callbacks True N/A N/A _now_node N/A self _shift_set N/A N/A shifted_now N/A N/A self _shift_set N/A _now_node N/A shifted_ctx all_shifted_contexts N/A N/A shifted_shift_set N/A N/A shifted_ctx get_shift_set N/A N/A N/A N/A N/A shifted_shift_set N/A _now_node shifted_now N/A N/A N/A shifted_ctx self N/A N/A N/A all_contexts N/A num_contexts shifted_ctx N/A num_contexts 1 N/A N/A shifted_ctx _has_nodes_requiring_set_date_callback N/A N/A N/A N/A contexts_with_set_date_callbacks append shifted_ctx N/A have_on_set_date_callbacks True N/A N/A N/A KeyError N/A N/A N/A N/A shifted_ctx all_shifted_contexts N/A N/A N/A _now_node N/A N/A shifted_ctx get_shift_set N/A N/A N/A shifted_ctx self N/A N/A N/A all_contexts N/A num_contexts shifted_ctx N/A num_contexts 1 N/A N/A shifted_ctx _has_nodes_requiring_set_date_callback N/A N/A N/A N/A contexts_with_set_date_callbacks append shifted_ctx N/A have_on_set_date_callbacks True N/A all_contexts N/A all_contexts N/A num_contexts N/A on_set_date_dirty N/A N/A cython declare list N/A on_set_date_dirty_count N/A N/A cython declare int 0 N/A have_on_set_date_callbacks N/A N/A on_set_date_dirty N/A N/A ctx contexts_with_set_date_callbacks N/A N/A calling_node N/A N/A ctx _get_calling_node prev_ctx N/A cookie N/A N/A ctx _activate prev_ctx thread_id N/A N/A N/A node N/A N/A N/A ctx _nodes_requiring_set_date_callback keys N/A N/A N/A cqueue_push N/A ctx _node_eval_stack node N/A N/A N/A N/A N/A ctx _profile node timer N/A N/A dirty N/A N/A node on_set_date ctx date N/A dirty N/A N/A N/A N/A on_set_date_dirty append N/A node ctx N/A on_set_date_dirty_count 1 N/A N/A N/A cqueue_pop N/A ctx _node_eval_stack N/A N/A N/A N/A ctx _deactivate cookie N/A ctx all_contexts N/A N/A N/A ctx _now date N/A N/A ctx _has_incrementally_updated_nodes N/A N/A node N/A N/A N/A ctx _incrementally_updated_nodes iterkeys N/A N/A N/A N/A node set_dirty ctx DIRTY_FLAGS_TIME N/A N/A on_set_date_dirty_count 0 N/A N/A N/A node ctx on_set_date_dirty N/A N/A N/A N/A node set_dirty ctx DIRTY_FLAGS_TIME N/A alt_ctx N/A N/A _now_node get_alt_context self N/A N/A N/A alt_ctx set_value _now_node date N/A N/A date prev_date N/A N/A ctx all_contexts N/A N/A node N/A N/A N/A ctx _incrementally_updated_nodes iterkeys N/A N/A N/A N/A node clear_value ctx N/A N/A N/A N/A ctx _incrementally_updated_nodes clear N/A N/A ctx _has_incrementally_updated_nodes False N/A N/A N/A N/A ctx _nodes_requiring_set_date_callback clear N/A N/A ctx _has_nodes_requiring_set_date_callback False N/A N/A ctx all_contexts N/A N/A N/A N/A ctx _has_incrementally_updated_nodes N/A N/A N/A calling_node N/A N/A ctx _get_calling_node prev_ctx N/A cookie N/A N/A ctx _activate prev_ctx thread_id N/A N/A N/A node N/A N/A N/A ctx _incrementally_updated_nodes keys N/A N/A N/A N/A ctx _get_node_value node calling_node ctx thread_id N/A N/A N/A N/A ctx _deactivate cookie N/A set_date N/A N/A self date N/A N/A N/A 
        sets the current date set on this context.

        This updates the value of the :py:func:`now` node in this
        context and also calls the update functions for any previously
        evaluated time-dependent nodes in this context.
         N/A cookie N/A N/A self _activate N/A N/A N/A N/A N/A self _set_date date N/A N/A N/A N/A self _deactivate cookie N/A _activate_ctx N/A N/A self prev_ctx thread_id N/A None None N/A N/A N/A N/A self _activate prev_ctx thread_id N/A _activate N/A N/A self prev_ctx thread_id N/A None None N/A N/A set self as the current context N/A thread_id N/A N/A thread_id None thread_id N/A PyThread_get_thread_ident N/A N/A prev_ctx None N/A N/A N/A N/A prev_ctx N/A _current_contexts N/A thread_id N/A N/A N/A KeyError N/A N/A N/A N/A _current_contexts N/A thread_id self N/A N/A Cookie thread_id prev_ctx N/A _deactivate N/A N/A self cookie N/A N/A N/A re-set the previous context as the current context N/A N/A _current_contexts N/A N/A cookie thread_id N/A cookie prev_context N/A _get_node_value N/A N/A self node calling_node prev_ctx thread_id N/A None None None N/A N/A cookie N/A N/A self _activate prev_ctx thread_id N/A prev_ctx N/A cookie prev_context N/A N/A calling_node None N/A N/A calling_node N/A N/A self _get_calling_node prev_ctx N/A N/A N/A N/A cqueue_push N/A self _node_eval_stack node N/A N/A N/A N/A N/A node get_value self thread_id N/A N/A N/A cqueue_pop N/A self _node_eval_stack N/A N/A node _has_set_date_callback N/A N/A N/A N/A self _nodes_requiring_set_date_callback N/A node None N/A N/A self _has_nodes_requiring_set_date_callback True N/A alt_ctx N/A N/A cython declare MDFContext N/A alt_ctx N/A N/A node get_alt_context self N/A N/A calling_node None N/A N/A N/A N/A calling_node _add_dependency prev_ctx node alt_ctx N/A N/A node _has_timestep_update N/A N/A N/A N/A alt_ctx _incrementally_updated_nodes N/A node None N/A N/A alt_ctx _has_incrementally_updated_nodes True N/A N/A N/A N/A self _deactivate cookie N/A get_value N/A N/A self node N/A N/A N/A 
        returns the value of the node in this context
         N/A _profiling_enabled N/A N/A stop_time N/A N/A time clock N/A ctx N/A N/A cython declare MDFContext N/A ctx N/A N/A self _parent self N/A timer N/A N/A cython declare Timer N/A timer None N/A N/A N/A len N/A ctx _timer_stack 0 N/A N/A timer N/A N/A ctx _pause_current_timer stop_time N/A N/A isinstance node MDFNode Attempted to get value of a non-node object N/A N/A N/A N/A N/A self _get_node_value node N/A N/A N/A _profiling_enabled N/A timer None N/A N/A N/A N/A timer resume N/A set_value N/A N/A self node value N/A N/A N/A         
        Sets a value of a node in the context.
         N/A cookie N/A N/A self _activate N/A N/A N/A N/A N/A self _finalized N/A self _shift_set N/A N/A N/A node _now_node N/A node N/A self _shift_set N/A N/A N/A AttributeError Shifted contexts are read-only N/A N/A isinstance value NowNodeValue N/A N/A tmp N/A N/A cython declare NowNodeValue N/A tmp value N/A value N/A tmp value N/A N/A N/A node set_value self value N/A N/A N/A N/A self _deactivate cookie N/A set_override N/A N/A self node override_node N/A N/A N/A 
        Sets an override for a node in this context.
         N/A cookie N/A N/A self _activate N/A N/A N/A N/A N/A self _finalized N/A self _shift_set N/A N/A N/A AttributeError Shifted contexts are read-only N/A N/A N/A node set_override self override_node N/A N/A N/A N/A self _deactivate cookie N/A __getitem__ N/A N/A self node N/A N/A N/A 
        Gets a node value in the context.

        See :py:meth:`get_value`.
         N/A N/A N/A self get_value node N/A __setitem__ N/A N/A self node value N/A N/A N/A 
        Sets a node value in the context.
        If ``value`` is an ``MDFNode`` it is applied as an override.

        See :py:meth:`set_value` and :py:meth:`set_override`.
         N/A N/A isinstance value MDFNode N/A N/A N/A N/A self set_override node value N/A N/A N/A N/A self set_value node value N/A _get_calling_node N/A N/A self prev_ctx N/A None N/A N/A N/A prev_ctx None N/A N/A thread_id N/A PyThread_get_thread_ident N/A N/A N/A prev_ctx N/A _current_contexts N/A thread_id N/A N/A N/A KeyError N/A N/A prev_ctx None N/A N/A prev_ctx None N/A N/A prev_ctx self N/A N/A N/A len N/A prev_ctx _node_eval_stack 0 N/A N/A N/A N/A prev_ctx _node_eval_stack N/A -1 N/A None N/A _start_timer N/A N/A self node_or_builder N/A N/A N/A starts the timer for a node and makes that timer the current one N/A ctx N/A N/A self _parent self N/A timer N/A N/A cython declare Timer N/A timer N/A N/A N/A self _timers get node_or_builder N/A N/A timer None N/A N/A timer N/A Timer node_or_builder N/A N/A N/A self _timers N/A node_or_builder timer N/A N/A N/A N/A ctx _timer_stack append timer N/A N/A N/A timer start N/A timer N/A _stop_timer N/A N/A self N/A N/A N/A stops the current timer, pops it off the stack of timers and returns it N/A stop_time N/A N/A time clock N/A ctx N/A N/A self _parent self N/A timer N/A N/A cython declare Timer N/A timer N/A N/A N/A ctx _timer_stack pop N/A N/A N/A timer stop stop_time N/A timer N/A _pause_current_timer N/A N/A self stop_time N/A N/A N/A stops the current timer and returns it, call timer.resume to resume N/A stop_time N/A stop_time N/A N/A time clock N/A ctx N/A N/A self _parent self N/A timer N/A N/A cython declare Timer N/A timer N/A N/A ctx _timer_stack N/A -1 N/A N/A timer is_running N/A N/A N/A N/A timer stop stop_time N/A timer N/A _profile N/A N/A self node N/A N/A N/A 
        returns an object using with semantics for timing a node evaluation.
        This is called from node sub-classes to indicate the node is doing work.
         N/A _profiling_enabled N/A N/A N/A NodeOrBuilderTimer self node N/A _null_timer N/A _profile_builder N/A N/A self builder N/A N/A N/A used by mdf.run N/A _profiling_enabled N/A N/A N/A NodeOrBuilderTimer self builder N/A _null_timer N/A all_nodes N/A N/A self N/A N/A N/A 
        returns a set of all nodes that have been called in this context
         N/A nodes_with_value N/A set N/A node N/A N/A _all_nodes itervalues N/A N/A N/A N/A N/A node has_value self N/A N/A node was_called self N/A N/A N/A N/A nodes_with_value add node N/A nodes_with_value N/A visit_nodes N/A N/A self visitor root_nodes categories N/A None None N/A N/A 
        Calls the visitor for each node and context pair this context knows
        about.

        :return: False if the visitor earlied out, True otherwise.

        :param vistor: function to be called for each node.

        :param root_nodes: if not None root_nodes is a a list of nodes, and only
                           those nodes and any dependent nodes will be visited.

        :param categories: if not not None only nodes belonging to those categories
                           will be visited.

        The visitor function should be of the form:
        
            def visitor(node, context):
                return True or False

        It should return False to indicate the routine should early-out,
        or True otherwise.
         N/A dependencies N/A N/A N/A root_nodes None N/A N/A node root_nodes N/A N/A N/A N/A dependencies append N/A node self N/A N/A node N/A N/A self all_nodes N/A N/A N/A N/A dependencies append N/A node self N/A N/A categories None N/A N/A categories N/A set categories N/A seen N/A set N/A dependencies N/A N/A N/A node ctx N/A N/A dependencies pop 0 N/A N/A N/A node ctx seen N/A N/A N/A N/A N/A seen add N/A node ctx N/A N/A N/A categories None N/A N/A categories intersection N/A node categories N/A N/A result N/A visitor node ctx N/A N/A N/A result N/A result None N/A N/A False N/A deps N/A N/A node get_dependencies ctx N/A N/A node ctx deps N/A N/A N/A N/A dependencies append N/A node ctx N/A True N/A ppstats N/A N/A self N/A N/A N/A 
        print out some profiling stats
         N/A N/A _profiling_enabled N/A N/A N/A N/A *** MDF profiling not enabled ***
 Use the --mdf-profile command line option  to enable profiling N/A N/A ctx N/A N/A cython declare MDFContext N/A nodes_without_value N/A set N/A N/A _all_nodes itervalues N/A nodes_with_value N/A set N/A all_timers N/A N/A num_shifts N/A len N/A N/A self get_shifted_contexts N/A ctx N/A N/A itertools chain N/A self N/A N/A self get_shifted_contexts N/A N/A node N/A list nodes_without_value N/A N/A N/A N/A node has_value ctx N/A N/A N/A N/A nodes_with_value add node N/A N/A N/A nodes_without_value remove node N/A N/A obj timer N/A N/A N/A ctx _timers iteritems N/A N/A N/A isinstance obj MDFNodeBase N/A N/A name N/A obj name N/A N/A N/A hasattr obj __name__ N/A N/A name N/A <%s 0x%x> N/A N/A obj __name__ N/A id obj N/A N/A N/A hasattr obj __class__ N/A N/A name N/A <%s 0x%x> N/A N/A N/A obj __class__ __name__ N/A id obj N/A N/A name N/A str obj N/A N/A N/A N/A N/A all_timers setdefault name N/A append timer timers_total_time N/A N/A x N/A N/A N/A N/A _ timers x N/A N/A sum N/A N/A t total_time N/A t timers N/A N/A all_timers N/A N/A all_timers items N/A N/A N/A all_timers sort key timers_total_time N/A total_time 0.0 N/A N/A name timers all_timers N/A N/A node_num_calls N/A sum N/A N/A t num_calls N/A t timers N/A node_total_time N/A sum N/A N/A t total_time N/A t timers N/A name N/A N/A     Num Calls: %d node_num_calls N/A N/A     Total Time: %f node_total_time N/A N/A total_time node_total_time N/A N/A Number of nodes: %s N/A len nodes_with_value N/A N/A Number of shifted contexts: %s num_shifts N/A N/A Total Time: %f total_time N/A to_dot N/A N/A self filename nodes colors all_contexts max_depth rankdir N/A None None N/A True None LR N/A N/A 
        constructs a .dot graph from the nodes that have a value in
        this context and writes it to filename if not None.
    
        colors can be used to override any of the colors used
        to color the graph. the defaults are::
    
            defaults = {
                "node"      :   "white",
                "nownode"   :   "darkorchid1",
                "queuenode" :   "darksalmon",
                "varnode"   :   "deepskyblue",
                "shiftnode" :   "gold",
                "headnode"  :   "olivedrab3",
                "edge"      :   "black",
                "nowedge"   :   "darkorchid4",
                "varedge"   :   "deepskyblue4",
                "shiftedge" :   "gold4",
                "context"   :   "grey90",
                "module0"   :   "grey81",
                "module1"   :   "grey72"
            }
    
        If all_contexts is true it will look for head nodes in all contexts,
        otherwise only this context will be used.
    
        If max_depth is not None the graph will be truncated so that all nodes
        are at most max_depth levels deep from the root node(s).
    
        rankdir sets how the graph is ordered when rendered.
        Possible values are:

        - "TB" : top to bottom
        - "LR" : left to right
        - "BT" : bottom to top
        - "RL" : right to left
    
        returns a pydot.Graph object
         to_dot _to_dot N/A colors N/A dict colors N/A N/A N/A colors update N/A self _dot_colors N/A N/A _to_dot self filename nodes colors all_contexts max_depth rankdir N/A N/A _get_current_context N/A N/A thread_id N/A None N/A N/A returns the current context during node evaluation N/A N/A thread_id None N/A N/A thread_id N/A PyThread_get_thread_ident N/A N/A N/A ctx N/A _current_contexts N/A thread_id N/A N/A N/A KeyError N/A N/A ctx None N/A N/A ctx None N/A N/A N/A NoCurrentContextError N/A ctx N/A _get_context N/A N/A ctx_id ctx N/A None N/A N/A 
    looks up a context by id

    the ctx_id must be related to the current context, or ctx
    if ctx is not None.
     N/A N/A ctx None N/A N/A ctx N/A _get_current_context N/A parent N/A N/A N/A ctx _parent None N/A ctx _parent ctx N/A N/A N/A parent _id_obj ctx_id N/A N/A parent N/A N/A N/A parent _all_child_contexts N/A ctx_id N/A shift N/A N/A node target values shift_sets N/A None None None N/A N/A 
    This function is for use inside node functions.
    
    Applies shifts to the current context for each
    shift specified and returns the value of 'node'
    with each of the shifts applied.

    If target and values are specified 'target' is a node
    to apply a series of shifts to, specified by 'values'.
    
    If shifts_sets is specified, 'shift_sets' is a list
    of nodes to values dictionaries, each one specifying
    a shift.

    If the same shift set dictionaries are used several times
    `ShiftSet` objects may be used instead which will
    be slightly faster. See :py:func:`make_shift_set`.

    Returns a list of the results of evaluating node for
    each of the shifted contexts in the same order
    as values or shift_sets.

    See :py:meth:`MDFContext.shift` for more details about shifted
    contexts.
     N/A _profiling_enabled N/A N/A stop_time N/A N/A time clock N/A thread_id N/A PyThread_get_thread_ident N/A ctx N/A _get_current_context thread_id N/A _profiling_enabled N/A N/A timer N/A N/A ctx _pause_current_timer stop_time N/A shifted_ctx N/A N/A cython declare MDFContext N/A results N/A N/A cython declare list N/A calling_node N/A N/A ctx _get_calling_node ctx N/A N/A N/A N/A shift_sets None N/A N/A results N/A N/A shift_set shift_sets N/A N/A shifted_ctx N/A N/A ctx _shift shift_set N/A N/A N/A results append N/A N/A shifted_ctx _get_node_value node calling_node ctx thread_id N/A N/A results N/A N/A value values N/A N/A shifted_ctx N/A N/A ctx _shift N/A target value N/A N/A N/A results append N/A N/A shifted_ctx _get_node_value node calling_node ctx thread_id N/A results N/A N/A _profiling_enabled N/A N/A N/A N/A timer resume N/A _shift N/A N/A node target values N/A kwargs N/A N/A 
    deprecated; see shift
     N/A N/A N/A warnings warn _shift is deprecated; use shift instead DeprecationWarning N/A N/A shift node target values N/A make_shift_set N/A N/A shift_set_dict N/A N/A N/A 
    Return a 'ShiftSet' object that encapsulates the information
    required to get a shifted context.
    
    This can be used to pass to the :py:func:`shift` function instead
    of a dictionary for better performance when regularly shifting by
    the same thing.
     N/A N/A ShiftSet shift_set_dict N/A get_nodes N/A N/A category N/A None N/A N/A 
    returns a list of nodes.
    
    ``category`` maybe a string or a list of strings. If specified,
    only nodes matching those categories will be returned.
     N/A N/A category None N/A N/A N/A N/A _all_nodes values N/A N/A isinstance category basestring N/A N/A category N/A category N/A categories N/A set category N/A nodes N/A N/A node N/A N/A _all_nodes itervalues N/A N/A N/A N/A categories intersection N/A node categories N/A N/A N/A N/A nodes append node N/A nodes N/A