Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore TupleLoad TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore TupleLoad TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str Assign NameStore Dict Str Str Str Num Num Num Assign NameStore ListLoad Str Str Str Str Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore TupleLoad TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore TupleLoad TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword ListLoad Num Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr UnaryOpInvert Call AttributeLoad NameLoad attr keyword ListLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr Str attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr While CompareEq Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Call NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Dict Assign NameStore Call NameLoad NameLoad Str Dict For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr For NameStore ListLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd NameLoad NameLoad CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str ImportFrom alias identifier If CompareEq NameLoad NameLoad body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore ListLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr orelse If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr While Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore BoolOpOr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias alias Assign NameStore Dict Assign NameStore Dict Assign NameStore Dict For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If BoolOpAnd CompareNotEq Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str If NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr orelse If NameLoad body If NameLoad body Delete SubscriptDel NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str ImportFrom alias alias If UnaryOpNot NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad orelse If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr If BoolOpOr UnaryOpNot Call AttributeLoad NameLoad attr Str BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad UnaryOpNot NameLoad body Continue If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad NameLoad attr Str NameLoad keyword Call AttributeLoad NameLoad attr Str NameLoad keyword Call AttributeLoad NameLoad attr Str NameLoad keyword Call AttributeLoad NameLoad attr Str NameLoad keyword Call AttributeLoad NameLoad attr Str NameLoad keyword Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad keyword NameLoad Expr Call NameLoad NameLoad DictComp NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Dict If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad orelse Return NameLoad If NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr orelse If NameLoad body If CompareEq AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad attr AttributeLoad NameLoad attr body Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad orelse Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr orelse Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad orelse Continue Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list Assign NameStore TupleLoad Str Str Assign NameStore TupleLoad Str Str Assign NameStore BinOpAdd NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str For NameStore NameLoad body If CompareIn NameLoad NameLoad body Assign TupleStore NameStore NameStore NameLoad If CompareEq NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore NameLoad If CompareEq NameLoad Str body If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad orelse If CompareEq NameLoad Str body If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad If UnaryOpNot NameLoad body Continue Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword SubscriptLoad NameLoad Index NameLoad keyword AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str Dict Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad DictComp NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Expr Str ImportFrom alias alias identifier Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore BoolOpOr NameLoad AttributeLoad NameLoad attr Dict Assign NameStore BoolOpOr AttributeLoad NameLoad attr NameLoad Assign NameStore DictComp NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str ImportFrom alias If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index Num Return TupleLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore ListLoad Assign NameStore Dict For NameStore NameLoad body If UnaryOpNot Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr body Continue Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad Call NameLoad NameLoad keyword Str Index Num If BoolOpAnd Call NameLoad NameLoad NameLoad CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad Str Continue Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str ImportFrom alias identifier For NameStore AttributeLoad NameLoad attr body Assign NameStore CompareNotIn NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Slice Num keyword NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Num Assign NameStore TupleLoad TupleLoad NameLoad Call NameLoad Str TupleLoad NameLoad Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Call NameLoad Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call NameLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call NameLoad Str keyword NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call NameLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad ClassDef bases body Assign NameStore ListLoad Str Str Assign NameStore TupleLoad Str Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore TupleLoad TupleLoad NameLoad Call NameLoad Str TupleLoad NameLoad Call NameLoad Str TupleLoad NameLoad Call NameLoad Str TupleLoad NameLoad Call NameLoad Str TupleLoad NameLoad Call NameLoad Str TupleLoad NameLoad Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call NameLoad Str keyword NameLoad keyword NameLoad keyword Str ClassDef bases body Assign NameStore TupleLoad Str Str Assign NameStore ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore TupleLoad TupleLoad NameLoad Call NameLoad Str TupleLoad NameLoad Call NameLoad Str TupleLoad NameLoad Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call NameLoad Str FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword Call NameLoad Str keyword Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad decorator_list Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore TupleLoad TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str TupleLoad NameLoad Str ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Slice Num Num Assign NameStore Call AttributeLoad Str attr NameLoad If CompareGt Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad ClassDef bases body Assign NameStore TupleLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call NameLoad Str keyword NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpAnd CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return UnaryOpNot Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Dict Call AttributeLoad Str attr NameLoad Str NameLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad NameLoad attr attr keyword NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign NameStore TupleLoad Str Str Str Str Assign NameStore Call NameLoad NameLoad Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad attr Str Str If BoolOpAnd NameLoad CompareGt Call NameLoad Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Slice Num For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If BoolOpAnd NameLoad Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults CompareIn NameLoad NameLoad NameLoad Assign NameStore DictComp NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assign SubscriptStore NameLoad Index Str DictComp NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad Assign SubscriptStore NameLoad Index Str SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str BoolOpAnd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str BoolOpAnd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str BoolOpAnd AttributeLoad NameLoad attr DictComp NameLoad AttributeLoad AttributeLoad NameLoad attr attr comprehension NameStore ListLoad Str Str Return NameLoad Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign SubscriptStore NameLoad Index Str IfExp AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Str Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr keyword AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If NameLoad body Return SubscriptLoad NameLoad Index Num orelse Return NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad keyword Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword NameLoad keyword NameLoad ClassDef bases body Assign NameStore TupleLoad Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str IfExp CompareIsNot AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list decorator_list
N/A N/A 
:copyright: (c) 2014 Building Energy Inc
:license: see LICENSE for more details.
 N/A copy N/A json N/A unicodedata django.db models django.contrib.contenttypes generic django.core serializers django.utils.translation ugettext_lazy _ autoslug AutoSlugField audit_logs.models AuditLog LOG landing.models SEEDUser User django_extensions.db.models TimeStampedModel djorm_pgjson.fields JSONField data_importer.models ImportFile ImportRecord mcm mapper superperms.orgs.models Organization SuperOrganization seed.managers.json JsonManager seed.utils.time convert_datestr seed.utils.units convert_choice_data seed.utils.generic split_model_fields surveys models survey_models N/A PROJECT_NAME_MAX_LENGTH 255 N/A ASSESSED_RAW 0 N/A PORTFOLIO_RAW 1 N/A ASSESSED_BS 2 N/A PORTFOLIO_BS 3 N/A COMPOSITE_BS 4 N/A GREEN_BUTTON_RAW 5 N/A GREEN_BUTTON_BS 6 N/A SEED_DATA_SOURCES N/A N/A ASSESSED_RAW Assessed Raw N/A ASSESSED_BS Assessed N/A PORTFOLIO_RAW Portfolio Raw N/A PORTFOLIO_BS Portfolio N/A COMPOSITE_BS BuildingSnapshot N/A GREEN_BUTTON_RAW Green Button Raw N/A SYSTEM_MATCH 1 N/A USER_MATCH 2 N/A POSSIBLE_MATCH 3 N/A SEED_MATCH_TYPES N/A N/A SYSTEM_MATCH System Match N/A USER_MATCH User Match N/A POSSIBLE_MATCH Possible Match N/A SEARCH_CONFIDENCE_RANGES N/A low medium high 0.4 0.75 1.0 N/A BS_VALUES_LIST N/A pk tax_lot_id pm_property_id custom_id_1 address_line_1 N/A NATURAL_GAS 1 N/A ELECTRICITY 2 N/A FUEL_OIL 3 N/A FUEL_OIL_NO_1 4 N/A FUEL_OIL_NO_2 5 N/A FUEL_OIL_NO_4 6 N/A FUEL_OIL_NO_5_AND_NO_6 7 N/A DISTRICT_STEAM 8 N/A DISTRICT_HOT_WATER 9 N/A DISTRICT_CHILLED_WATER 10 N/A PROPANE 11 N/A LIQUID_PROPANE 12 N/A KEROSENE 13 N/A DIESEL 14 N/A COAL 15 N/A COAL_ANTHRACITE 16 N/A COAL_BITUMINOUS 17 N/A COKE 18 N/A WOOD 19 N/A OTHER 20 N/A WATER 21 N/A ENERGY_TYPES N/A N/A NATURAL_GAS Natural Gas N/A ELECTRICITY Electricity N/A FUEL_OIL Fuel Oil N/A FUEL_OIL_NO_1 Fuel Oil No. 1 N/A FUEL_OIL_NO_2 Fuel Oil No. 2 N/A FUEL_OIL_NO_4 Fuel Oil No. 4 N/A FUEL_OIL_NO_5_AND_NO_6 Fuel Oil No. 5 and No. 6 N/A DISTRICT_STEAM District Steam N/A DISTRICT_HOT_WATER District Hot Water N/A DISTRICT_CHILLED_WATER District Chilled Water N/A PROPANE Propane N/A LIQUID_PROPANE Liquid Propane N/A KEROSENE Kerosene N/A DIESEL Diesel N/A COAL Coal N/A COAL_ANTHRACITE Coal Anthracite N/A COAL_BITUMINOUS Coal Bituminous N/A COKE Coke N/A WOOD Wood N/A OTHER Other N/A KILOWATT_HOURS 1 N/A THERMS 2 N/A WATT_HOURS 3 N/A ENERGY_UNITS N/A N/A KILOWATT_HOURS kWh N/A THERMS Therms N/A WATT_HOURS Wh get_ancestors N/A N/A building N/A N/A N/A gets all the non-raw, non-composite ancestors of a building

       Recursive function to traverse the tree upward.
       source_type {
           2: ASSESSED_BS,
           3: PORTFOLIO_BS,
           4: COMPOSITE_BS
       }

       :param building: BuildingSnapshot inst.
       :returns: list of BuildingSnapshot inst., ancestors of building
     N/A ancestors N/A N/A parents N/A N/A N/A building parents filter source_type__in N/A 2 3 4 N/A N/A N/A ancestors extend N/A N/A parents filter source_type__in N/A 2 3 N/A p parents N/A N/A N/A N/A ancestors extend N/A get_ancestors p N/A ancestors N/A find_unmatched_buildings N/A N/A import_file N/A N/A N/A Get unmatched building snapshots' id info from an import file.

    :param import_file: ImportFile inst.

    :rtype: list of tuples, field values specified in BS_VALUES_LIST.

    NB: This does not return a queryset!

     N/A N/A N/A N/A BuildingSnapshot objects filter N/A N/A N/A models Q source_type__in N/A COMPOSITE_BS ASSESSED_RAW PORTFOLIO_RAW GREEN_BUTTON_RAW match_type None import_file import_file canonical_building None N/A find_canonical_building_values N/A N/A org N/A N/A N/A Get all canonical building snapshots' id info for an organization.

    :param org: Organization inst.

    :rtype: list of tuples, field values specified in BS_VALUES_LIST
        for all canonical buildings related to an organization.

    NB: This does not return a queryset!

     N/A users N/A N/A N/A org users all N/A N/A N/A N/A N/A N/A N/A N/A BuildingSnapshot objects filter pk__in N/A N/A N/A N/A N/A CanonicalBuilding objects filter canonical_snapshot__import_file__import_record__owner__in users values_list canonical_snapshot_id distinct values_list BS_VALUES_LIST N/A obj_to_dict N/A N/A obj N/A N/A N/A serializes obj for a JSON friendly version
        tries to serialize JSONField

     N/A data N/A N/A serializers serialize json N/A obj N/A struct N/A N/A N/A json loads data N/A 0 N/A response N/A struct N/A fields N/A N/A response N/A id N/A response N/A pk N/A struct N/A pk N/A N/A response N/A model N/A struct N/A model N/A f N/A N/A obj _meta fields N/A N/A N/A N/A type f JSONField N/A N/A e N/A getattr obj N/A f name N/A N/A N/A type e unicode N/A N/A e N/A N/A json loads e N/A N/A response N/A N/A unicode N/A f name e N/A response N/A get_sourced_attributes N/A N/A snapshot N/A N/A N/A Return all the attribute names that get sourced. N/A single_sources N/A N/A plural_sources N/A N/A item N/A N/A snapshot _meta fields N/A N/A N/A hasattr snapshot N/A N/A {0}_source format N/A item name N/A N/A N/A N/A single_sources append N/A item name N/A N/A hasattr snapshot N/A N/A {0}_sources format N/A item name N/A N/A N/A N/A plural_sources append N/A item name N/A N/A single_sources plural_sources N/A set_initial_sources N/A N/A snapshot N/A N/A N/A Sets the PK for the original sources to self. N/A N/A single plural N/A get_sourced_attributes snapshot N/A attr single N/A N/A N/A setattr snapshot N/A N/A {0}_source format attr snapshot N/A attr plural N/A N/A attrs N/A getattr snapshot attr N/A N/A sources N/A getattr snapshot {0}_sources N/A N/A k attrs N/A N/A N/A sources N/A k N/A snapshot pk N/A N/A setattr snapshot N/A N/A {0}_sources format attr sources N/A snapshot N/A get_or_create_canonical N/A N/A b1 b2 N/A None N/A N/A Gets most trusted Canonical Building.

    :param b1: BuildingSnapshot model type.
    :param b2: BuildingSnapshot model type.
    :rtype: CanonicalBuilding inst. Will contain PK.

    NB: preference is given to existing snapshots' Canonical link.

     N/A canon N/A b1 canonical_building N/A N/A N/A canon b2 N/A N/A canon N/A b2 canonical_building N/A N/A canon N/A N/A canon N/A N/A N/A CanonicalBuilding objects create N/A canon N/A initialize_canonical_building N/A N/A snapshot user_pk N/A N/A N/A Called to create a Canonicalbuilding from a single snapshot.

    :param snapshot: BuidingSnapshot inst.
    :param user_pk: The user id of the user initiating the CanonicalBuilding

     N/A canon N/A get_or_create_canonical snapshot N/A N/A snapshot canonical_building canon N/A N/A N/A snapshot save N/A N/A canon canonical_snapshot snapshot N/A N/A N/A canon save N/A N/A N/A N/A AuditLog objects create user_id user_pk organization N/A snapshot super_organization action create_building action_note Created building content_object canon audit_type LOG N/A clean_canonicals N/A N/A b1 b2 new_snapshot N/A N/A N/A Make sure that we don't leave dead limbs in our tree.

    :param b1: BuildingSnapshot, parent 1
    :param b2: BuildingSnapshot, parent 2
    :param new_snapshot: BuildingSnapshot, child.

     N/A latest_canon N/A new_snapshot canonical_building N/A p N/A b1 b2 N/A N/A canon N/A p canonical_building N/A N/A canon latest_canon N/A N/A canon pk N/A latest_canon pk N/A N/A N/A canon active False N/A N/A N/A canon save N/A save_snapshot_match N/A N/A b1_pk b2_pk confidence user match_type N/A None None None N/A N/A Saves a match between two models as a new snapshot; updates Canonical.

    :param b1_pk: int, id for building snapshot.
    :param b2_pk: int, id for building snapshot.
    :param confidence: (optional) float, liklihood that two models are linked.
    :param user: (optional) User inst, last_modified_by for BuildingSnapshot.
    :rtype: BuildingSnapshot instance, post save.

    Determines which Canonical link should be used. If ``canonical`` is
    specified,
    we're probably changing a building's Canonical link, so use that Canonical
    Building. Otherwise, use the model we match against. If none exists,
    create it.

    Update mapped fields in the new snapshot, update canonical links.

     seed.mappings mapper seed_mapper N/A N/A b1_pk b2_pk N/A N/A N/A b1 N/A N/A N/A BuildingSnapshot objects get pk b1_pk N/A b2 N/A N/A N/A BuildingSnapshot objects get pk b2_pk N/A b1 N/A b1 tip N/A b2 N/A b2 tip N/A new_snapshot N/A N/A N/A BuildingSnapshot objects create N/A new_snapshot N/A N/A seed_mapper merge_building new_snapshot b1 b2 N/A N/A seed_mapper get_building_attrs N/A b1 b2 conf confidence match_type match_type N/A N/A clean_canonicals b1 b2 new_snapshot N/A N/A new_snapshot last_modified_by user N/A N/A N/A N/A new_snapshot meters add N/A N/A N/A b1 meters all N/A N/A N/A N/A new_snapshot meters add N/A N/A N/A b2 meters all N/A N/A new_snapshot super_organization N/A b1 super_organization N/A N/A new_snapshot super_organization N/A b2 super_organization N/A N/A N/A new_snapshot save N/A new_snapshot N/A unmatch_snapshot_tree N/A N/A building_pk N/A N/A N/A May or may not obviate ``unmatch_snapshot``. Experimental.

    :param building_pk: int - Primary Key for a BuildingSnapshot.

    .. warning::

        ``unmatch_snapshot_tree`` potentially modifies *years* of
        merged data. Anything decended from the ``building_pk`` will
        be deleted. The intent is to completely separate ``building_pk``'s
        influence on the resultant canonical_snapshot. The user is saying
        that these are separate entities afterall, yes?

    Basically, this function works by getting a merge order list of
    children from the perspective of ``building_pk`` and a list of parents
    from the perspective of leaf node in the child tree. We take the difference
    between these lists and call that the ``remaining_ancestors`` from which
    we reconstruct the merge tree for our CanonicalBuilding.

    ``building_pk`` either gets a reactivated CanonicalBuilding, or a new one.

     N/A root_coparent N/A N/A N/A BuildingSnapshot objects get pk building_pk N/A root N/A root_coparent co_parent N/A node root N/A children_to_murder N/A N/A coparents_to_keep N/A N/A N/A N/A root canonical_building N/A N/A new_canon N/A N/A N/A CanonicalBuilding objects create canonical_snapshot root N/A N/A root canonical_building new_canon N/A N/A N/A root save N/A N/A N/A N/A root_coparent canonical_building N/A N/A root_coparent canonical_building N/A root canonical_building N/A N/A new_canon N/A N/A N/A CanonicalBuilding objects create canonical_snapshot root_coparent N/A N/A root_coparent canonical_building new_canon N/A N/A N/A root_coparent save N/A unmatched_canon N/A root_coparent canonical_building N/A N/A unmatched_canon active True N/A N/A N/A unmatched_canon save N/A N/A N/A N/A N/A root_coparent canonical_building active N/A N/A unmatched_canon N/A root_coparent canonical_building N/A N/A unmatched_canon active True N/A N/A unmatched_canon canonical_snapshot root_coparent N/A N/A N/A unmatched_canon save N/A N/A N/A N/A node children first N/A N/A child N/A N/A N/A node children first N/A N/A node co_parent N/A N/A parent N/A node co_parent N/A N/A N/A N/A parent pk N/A root_coparent pk N/A N/A N/A N/A coparents_to_keep append parent N/A parent N/A N/A N/A child parents all N/A N/A N/A N/A N/A parent children remove child N/A N/A N/A children_to_murder append child N/A node child N/A child children_to_murder N/A N/A N/A N/A child delete N/A bachelor root N/A newborn_child None N/A bereaved_parent coparents_to_keep N/A N/A newborn_child N/A save_snapshot_match N/A bachelor pk N/A bereaved_parent pk N/A bachelor newborn_child N/A tip N/A newborn_child root N/A canon N/A root canonical_building N/A N/A canon canonical_snapshot tip N/A N/A N/A canon save N/A _get_filtered_values N/A N/A updated_values N/A N/A N/A Breaks out mappable, meta and source BuildingSnapshot attributes. seed.utils.constants META_FIELDS EXCLUDE_FIELDS N/A mappable_values N/A N/A meta_values N/A N/A source_values N/A N/A item updated_values N/A N/A value N/A updated_values N/A item N/A N/A N/A item endswith _source N/A N/A N/A source_values N/A item value N/A N/A N/A item META_FIELDS N/A N/A N/A meta_values N/A item value N/A N/A N/A item EXCLUDE_FIELDS N/A N/A N/A mappable_values N/A item value N/A N/A mappable_values meta_values source_values N/A _get_diff_sources N/A N/A mappable old_snapshot N/A N/A N/A Return a list of str for values that changed from old_snapshot. N/A results N/A N/A item mappable N/A N/A value N/A mappable N/A item N/A N/A N/A N/A getattr old_snapshot item None value value N/A N/A N/A N/A results append item N/A results N/A _handle_ts_data N/A N/A meter timeseries_data N/A N/A N/A Saves/updates timeseries data. N/A ts timeseries_data N/A N/A t None N/A pk N/A N/A ts get pk None N/A N/A pk N/A N/A t N/A N/A N/A TimeSeries objects create ts N/A N/A t N/A N/A N/A TimeSeries objects get pk pk N/A N/A t begin_time N/A N/A ts get begin_time N/A N/A t end_time N/A N/A ts get end_time N/A N/A t reading N/A N/A ts get reading N/A N/A t cost N/A N/A ts get cost N/A t N/A N/A N/A t meter meter N/A N/A N/A t save N/A _handle_meter_data N/A N/A bs meters business N/A None N/A N/A Saves/updates meter data.

    :param bs: BuildingSnapshot
    :param meters: list of dict
    :param business: Business
    :returns: BuildingSnapshot

     N/A meter meters N/A N/A meter N/A N/A copy deepcopy meter N/A pk N/A N/A meter pop id None N/A m None N/A ts_data N/A N/A meter get timeseries_data N/A N/A energy_type N/A N/A meter get energy_type Electricity N/A N/A meter N/A energy_type N/A convert_choice_data energy_type ENERGY_TYPES N/A energy_units N/A N/A meter pop energy_units kWh N/A N/A meter N/A energy_units N/A convert_choice_data energy_units ENERGY_UNITS N/A business N/A N/A N/A meter N/A business_id N/A business pk N/A pk N/A N/A m N/A N/A N/A Meter objects get pk pk N/A N/A m name N/A N/A meter get name N/A N/A m energy_type N/A N/A meter get energy_type N/A N/A m energy_units N/A N/A meter get energy_units N/A N/A N/A N/A m building_snapshot add bs N/A business N/A N/A N/A m business business N/A N/A N/A m save N/A N/A meter N/A N/A ts_data N/A N/A N/A meter N/A timeseries_data N/A m N/A N/A N/A Meter objects create meter N/A m N/A N/A N/A _handle_ts_data m ts_data N/A N/A N/A N/A bs meters add m N/A bs N/A _handle_business_contact N/A N/A business org contact_data N/A N/A N/A Update or create contact and update buisness. contacts.models Contact CONTACT_TYPES N/A N/A contact_data N/A N/A business N/A contact_data N/A N/A copy deepcopy contact_data N/A pk N/A N/A contact_data pop id None N/A contact_data N/A N/A copy deepcopy contact_data N/A N/A contact_data N/A contact_type N/A convert_choice_data N/A N/A contact_data get contact_type CONTACT_TYPES N/A N/A contact_data N/A super_organization_id N/A org pk N/A contact None N/A pk N/A N/A contact N/A N/A N/A Contact objects get pk pk N/A N/A contact_data N/A N/A contact N/A N/A N/A Contact objects create contact_data N/A contact N/A N/A N/A contact super_organization org N/A N/A N/A contact save N/A N/A business owner contact N/A N/A N/A business save N/A business N/A _handle_business_data N/A N/A bs businesses N/A N/A N/A Saves/updates business data.
    :param bs: BuildingSnapshot inst.
    :param businesses: list of dict, business specific payload data.
     N/A business businesses N/A N/A b None N/A pk N/A N/A business pop id None N/A contact_data N/A N/A business pop contact N/A N/A meter_data N/A N/A business pop meters N/A N/A pk N/A N/A b N/A N/A N/A Business objects get pk pk N/A N/A b name N/A N/A business get name None N/A N/A b address N/A N/A business get address None N/A N/A b occupancy N/A N/A business get occupancy None N/A N/A b gross_floor_area N/A N/A business get gross_floor_area None N/A N/A b unit_number N/A N/A business get unit_number None N/A N/A b description N/A N/A business get description None N/A N/A N/A b save N/A N/A N/A N/A N/A business get name N/A N/A business N/A contact_data N/A meter_data N/A N/A N/A N/A b N/A N/A b N/A N/A N/A Business objects create name N/A N/A business get name None address N/A N/A business get address None description N/A N/A business get description None unit_number N/A N/A business get unit_number None gross_floor_area N/A N/A business get gross_floor_area None occupancy N/A N/A business get occupancy None N/A b N/A _handle_business_contact b N/A bs super_organization contact_data N/A N/A _handle_meter_data bs meter_data business b N/A N/A _handle_utility_data bs N/A k v N/A N/A k v N/A N/A business items N/A k UTILITY_KEYS business b N/A N/A N/A N/A bs businesses add b N/A bs N/A _handle_survey_data N/A N/A bs survey_data N/A N/A N/A Save survey data.
    This functionality might as well live with the survey app, but the other
    building update functions are here, so it'll live with them for now.

    Expected payload:
        {
            'completion_time': 234,
            'comment': "Some general ideas, etc.",
            'date_collected': '2014-03-23',
            # Where the keys are the ids of the questions.
            'question_responses': {
                # text
                23: {'id': 234, 'answer': 'Coolio'},
                # radio
                234: {'id': None, 'answer': 'No'},
                # multi-select (QuestionOption.option as keys)
                33: {'HVAC': True, 'lighting retrofit': False}
            }
        }
     N/A pk N/A N/A survey_data pop id None N/A survey None N/A question_data N/A N/A survey_data pop question_responses N/A N/A pk N/A N/A survey N/A N/A N/A N/A survey_models Survey objects get pk pk N/A N/A bs N/A survey N/A N/A N/A sb c N/A N/A N/A N/A survey_models SurveyBuilding objects get_or_create survey survey canonical_building N/A bs canonical_building N/A N/A sb date_collected N/A convert_datestr N/A N/A survey_data get date_collected None N/A N/A sb comment N/A N/A survey_data get comment None N/A N/A sb completion_time N/A N/A survey_data get completion_time None N/A N/A N/A sb save N/A N/A question_id answer N/A N/A question_data items N/A N/A answer_id N/A N/A answer pop id None N/A N/A answer N/A question_id question_id N/A N/A answer N/A canonical_building_id N/A N/A bs canonical_building pk N/A answer_id N/A N/A a N/A N/A N/A N/A survey_models SurveyAnswer objects get pk answer_id N/A N/A a answer N/A N/A answer get answer None N/A N/A a answer_bool N/A N/A answer get answer_bool None N/A N/A a canonical_building_id N/A N/A bs canonical_building pk N/A N/A answer N/A N/A N/A N/A N/A N/A N/A N/A survey_models SurveyQuestion objects get pk question_id question_type N/A survey_models ENUM N/A N/A N/A answer N/A question_id N/A N/A answer N/A canonical_building_id N/A N/A sa checked N/A N/A answer items N/A N/A checked N/A N/A N/A N/A N/A N/A survey_models SurveyAnswer objects create question_id question_id canonical_building_id N/A N/A bs canonical_building pk answer sa N/A N/A N/A N/A N/A N/A N/A N/A survey_models SurveyAnswer objects filter question_id question_id canonical_building_id N/A N/A bs canonical_building pk answer sa delete N/A N/A a N/A N/A N/A N/A survey_models SurveyAnswer objects create answer N/A N/A N/A N/A N/A a save N/A bs N/A N/A UTILITY_NAMES N/A electric_provider natural_gas_provider N/A UTILITY_ACCOUNTS N/A electric_provider_account_number natural_gas_provider_account_number N/A UTILITY_KEYS N/A UTILITY_NAMES UTILITY_ACCOUNTS _handle_utility_data N/A N/A bs utility_dict business N/A None N/A N/A Save/Update Utility data. N/A util_datum utility_dict N/A N/A N/A util_datum UTILITY_NAMES N/A N/A N/A electric gas UTILITY_NAMES N/A N/A util_datum electric N/A N/A util_type ELECTRICITY N/A N/A util_type NATURAL_GAS N/A N/A util _ N/A N/A N/A Utility objects get_or_create name N/A utility_dict N/A util_datum utility_type util_type N/A business N/A N/A N/A N/A N/A util business add business N/A N/A N/A N/A N/A util building_snapshot add bs N/A util_datum utility_dict N/A N/A N/A util_datum UTILITY_ACCOUNTS N/A N/A util None N/A N/A util_datum electric_provider_account_number N/A N/A business N/A N/A util N/A N/A N/A Utility objects get business business utility_type ELECTRICITY N/A N/A util N/A N/A N/A Utility objects get building_snapshot bs utility_type ELECTRICITY N/A N/A N/A util_datum natural_gas_provider_account_number N/A N/A business N/A N/A util N/A N/A N/A Utility objects get business business utility_type NATURAL_GAS N/A N/A util N/A N/A N/A Utility objects get building_snapshot bs utility_type NATURAL_GAS N/A N/A util N/A N/A N/A N/A util_account _ N/A N/A N/A UtilityAccount objects get_or_create utility util account_number N/A utility_dict N/A util_datum canonical_building N/A bs canonical_building N/A bs N/A _handle_audit_data N/A N/A bs building_dict N/A N/A N/A Saves meter, business, utility data. N/A business_data N/A N/A building_dict get businesses N/A N/A meter_data N/A N/A building_dict get meters N/A N/A survey_data N/A N/A building_dict get survey N/A N/A bs N/A _handle_business_data bs business_data N/A bs N/A _handle_meter_data bs meter_data N/A bs N/A _handle_survey_data bs survey_data N/A bs N/A _handle_utility_data bs N/A k v N/A N/A k v N/A N/A building_dict items N/A k UTILITY_KEYS N/A bs N/A update_building N/A N/A old_snapshot updated_values user N/A args kwargs N/A N/A Creates a new snapshot with updated values. seed.mappings seed_mappings mapper seed_mapper N/A N/A mappable meta sources N/A _get_filtered_values updated_values N/A extra_data N/A updated_values N/A extra_data N/A extra_data N/A extra_data N/A old_snapshot extra_data N/A N/A canon N/A N/A old_snapshot canonical_building None N/A sources N/A k N/A N/A N/A BuildingSnapshot objects get pk v N/A N/A k v N/A N/A sources items v N/A new_snapshot N/A N/A mapper map_row mappable N/A dict N/A seed_mappings BuildingSnapshot_to_BuildingSnapshot BuildingSnapshot initial_data sources N/A diff_sources N/A _get_diff_sources mappable old_snapshot N/A diff diff_sources N/A N/A N/A setattr new_snapshot N/A N/A {0}_source format diff new_snapshot N/A N/A N/A new_snapshot clean N/A N/A new_snapshot canonical_building canon N/A N/A new_snapshot super_organization N/A old_snapshot super_organization N/A N/A N/A new_snapshot save N/A N/A N/A N/A new_snapshot businesses add N/A N/A N/A old_snapshot businesses all N/A N/A N/A N/A new_snapshot meters add N/A N/A N/A old_snapshot meters all N/A N/A _handle_audit_data new_snapshot updated_values N/A meta_val meta N/A N/A N/A setattr new_snapshot meta_val N/A meta N/A meta_val N/A N/A N/A N/A old_snapshot children add new_snapshot N/A N/A new_snapshot import_file_id N/A old_snapshot import_file_id N/A N/A new_snapshot extra_data extra_data N/A N/A extra sources N/A N/A seed_mapper merge_extra_data new_snapshot old_snapshot default new_snapshot N/A N/A new_snapshot extra_data extra N/A N/A new_snapshot extra_data_sources sources N/A N/A N/A new_snapshot save N/A canon N/A N/A N/A canon canonical_snapshot new_snapshot N/A N/A N/A canon save N/A N/A N/A N/A N/A N/A old_snapshot project_building_snapshots all update building_snapshot new_snapshot N/A N/A save_column_names new_snapshot N/A new_snapshot N/A get_column_mapping N/A N/A column_raw organization attr_name N/A column_mapped N/A N/A Callable provided to MCM to return a previously mapped field.

    :param column_raw: str, the column name of the raw data.
    :param organization: Organization inst.
    :param attr_name: str, name of attribute on ColumnMapping to pull out.
        whether we're looking at a mapping from the perspective of
        a raw_column (like we do when creating a mapping), or mapped_column,
        (like when we're applying that mapping).
    :returns: list of mapped items, float repreresentation of confidence.

     seed.utils.mapping _get_column_names N/A N/A N/A isinstance column_raw list N/A N/A column_raw N/A column_raw N/A cols N/A N/A N/A Column objects filter organization organization column_name__in column_raw N/A N/A N/A previous_mapping N/A N/A N/A ColumnMapping objects get super_organization organization column_raw__in cols N/A N/A N/A N/A ColumnMapping DoesNotExist N/A N/A None N/A column_names N/A _get_column_names previous_mapping attr_name attr_name N/A N/A N/A previous_mapping is_direct N/A N/A column_names N/A column_names N/A 0 N/A N/A column_names 100 N/A get_column_mappings N/A N/A organization N/A N/A N/A Returns dict of all the column mappings for an Org's given source type

    :param organization: inst, Organization.

    :returns dict, list of dict:

    Use this when actually performing mapping between datasources, but
    only call it after all of the mappings have been saved to the
    ``ColumnMapping`` table.

     seed.utils.mapping _get_column_names N/A source_mappings N/A N/A N/A ColumnMapping objects filter super_organization organization N/A concat_confs N/A N/A mapping N/A N/A item source_mappings N/A N/A N/A N/A N/A N/A N/A N/A item column_mapped all exists N/A N/A N/A key N/A _get_column_names item N/A value N/A N/A _get_column_names item attr_name column_mapped N/A 0 N/A N/A N/A isinstance key list N/A N/A len key 1 N/A N/A N/A N/A concat_confs append N/A concat_columns target delimiter key value N/A N/A N/A mapping N/A N/A key N/A 0 value N/A N/A mapping concat_confs N/A save_column_names N/A N/A bs mapping N/A None N/A N/A Save unique column names for extra_data in this organization.

    Basically this is a record of all the extra_data keys we've ever seen
    for a particular organization.

    :param bs: BuildingSnapshot instance.
     seed.utils mapping mapping_utils N/A key N/A bs extra_data N/A N/A is_extra_data N/A key N/A N/A mapping_utils get_mappable_columns N/A N/A N/A N/A Column objects get_or_create organization N/A bs super_organization column_name N/A key N/A 511 is_extra_data is_extra_data N/A Project N/A TimeStampedModel N/A N/A INACTIVE_STATUS 0 N/A ACTIVE_STATUS 1 N/A STATUS_CHOICES N/A N/A INACTIVE_STATUS N/A _ Inactive N/A ACTIVE_STATUS N/A _ Active N/A name N/A N/A models CharField N/A _ name max_length PROJECT_NAME_MAX_LENGTH N/A slug N/A AutoSlugField N/A _ slug populate_from name unique True editable True N/A owner N/A N/A models ForeignKey User verbose_name N/A _ User blank True null True N/A last_modified_by N/A N/A models ForeignKey User blank True null True related_name last_modified_user N/A super_organization N/A N/A models ForeignKey SuperOrganization verbose_name N/A _ SeedOrg blank True null True related_name projects N/A description N/A N/A models TextField N/A _ description blank True null True N/A status N/A N/A models IntegerField N/A _ status choices STATUS_CHOICES default ACTIVE_STATUS N/A building_snapshots N/A N/A models ManyToManyField BuildingSnapshot through ProjectBuilding blank True null True adding_buildings_status_percentage_cache_key N/A N/A self N/A N/A N/A N/A SEED_PROJECT_ADDING_BUILDINGS_PERCENTAGE_%s N/A self slug N/A property removing_buildings_status_percentage_cache_key N/A N/A self N/A N/A N/A N/A SEED_PROJECT_REMOVING_BUILDINGS_PERCENTAGE_%s N/A self slug N/A property has_compliance N/A N/A self N/A N/A N/A N/A N/A N/A self compliance_set exists N/A property __unicode__ N/A N/A self N/A N/A N/A N/A Project %s N/A N/A self name N/A get_compliance N/A N/A self N/A N/A N/A N/A self has_compliance N/A N/A N/A N/A N/A N/A self compliance_set all N/A 0 N/A N/A None N/A to_dict N/A N/A self N/A N/A N/A N/A obj_to_dict self N/A N/A ProjectBuilding N/A TimeStampedModel N/A N/A building_snapshot N/A N/A models ForeignKey BuildingSnapshot related_name project_building_snapshots N/A project N/A N/A models ForeignKey Project related_name project_building_snapshots N/A compliant N/A N/A models NullBooleanField null True N/A approved_date N/A N/A models DateField N/A _ approved_date null True blank True N/A approver N/A N/A models ForeignKey User verbose_name N/A _ User blank True null True N/A status_label N/A N/A models ForeignKey StatusLabel null True blank True Meta N/A N/A N/A ordering N/A project building_snapshot N/A unique_together N/A building_snapshot project N/A verbose_name N/A _ project building N/A verbose_name_plural N/A _ project buildings N/A __unicode__ N/A N/A self N/A N/A N/A N/A N/A {0} - {1} format N/A self building_snapshot N/A N/A self project name N/A to_dict N/A N/A self N/A N/A N/A N/A obj_to_dict self N/A N/A StatusLabel N/A TimeStampedModel N/A N/A RED_CHOICE red N/A ORANGE_CHOICE orange N/A WHITE_CHOICE white N/A BLUE_CHOICE blue N/A LIGHT_BLUE_CHOICE light blue N/A GREEN_CHOICE green N/A COLOR_CHOICES N/A N/A RED_CHOICE N/A _ red N/A BLUE_CHOICE N/A _ blue N/A LIGHT_BLUE_CHOICE N/A _ light blue N/A GREEN_CHOICE N/A _ green N/A WHITE_CHOICE N/A _ white N/A ORANGE_CHOICE N/A _ orange N/A name N/A N/A models CharField N/A _ name max_length PROJECT_NAME_MAX_LENGTH N/A color N/A N/A models CharField N/A _ compliance_type max_length 30 choices COLOR_CHOICES default GREEN_CHOICE N/A super_organization N/A N/A models ForeignKey SuperOrganization verbose_name N/A _ SeedOrg blank True null True related_name status_labels Meta N/A N/A N/A unique_together N/A name super_organization N/A ordering N/A -name N/A __unicode__ N/A N/A self N/A N/A N/A N/A N/A {0} - {1} format N/A self name N/A self color N/A to_dict N/A N/A self N/A N/A N/A N/A obj_to_dict self N/A N/A Compliance N/A TimeStampedModel N/A N/A BENCHMARK_COMPLIANCE_CHOICE Benchmarking N/A AUDITING_COMPLIANCE_CHOICE Auditing N/A RETRO_COMMISSIONING_COMPLIANCE_CHOICE Retro Commissioning N/A COMPLIANCE_CHOICES N/A N/A BENCHMARK_COMPLIANCE_CHOICE N/A _ Benchmarking N/A AUDITING_COMPLIANCE_CHOICE N/A _ Auditing N/A RETRO_COMMISSIONING_COMPLIANCE_CHOICE N/A _ Retro Commissioning N/A compliance_type N/A N/A models CharField N/A _ compliance_type max_length 30 choices COMPLIANCE_CHOICES default BENCHMARK_COMPLIANCE_CHOICE N/A start_date N/A N/A models DateField N/A _ start_date null True blank True N/A end_date N/A N/A models DateField N/A _ end_date null True blank True N/A deadline_date N/A N/A models DateField N/A _ deadline_date null True blank True N/A project N/A N/A models ForeignKey Project verbose_name N/A _ Project __unicode__ N/A N/A self N/A N/A N/A N/A Compliance %s for project %s N/A N/A self compliance_type N/A self project N/A to_dict N/A N/A self N/A N/A N/A N/A obj_to_dict self N/A N/A CustomBuildingHeaders N/A N/A models Model N/A N/A Specify custom building header mapping for display. N/A super_organization N/A N/A models ForeignKey SuperOrganization blank True null True verbose_name N/A _ SeedOrg related_name custom_headers N/A building_headers N/A JSONField N/A objects N/A JsonManager N/A N/A STRING 1 N/A DECIMAL 2 N/A FLOAT 3 N/A DATE 4 N/A DATETIME 5 N/A UNIT_TYPES N/A N/A STRING String N/A DECIMAL Decimal N/A FLOAT Float N/A DATE Date N/A DATETIME Datetime Unit N/A N/A models Model N/A N/A Unit of measure for a Column Value. N/A unit_name N/A N/A models CharField max_length 255 N/A unit_type N/A N/A models IntegerField choices UNIT_TYPES default STRING __unicode__ N/A N/A self N/A N/A N/A N/A N/A {0} Format: {1} format N/A self unit_name N/A self unit_type N/A N/A EnumValue N/A N/A models Model N/A N/A Individual Enumerated Type values. N/A value_name N/A N/A models CharField max_length 255 __unicode__ N/A N/A self N/A N/A N/A N/A N/A {0} format N/A self value_name N/A N/A Enum N/A N/A models Model N/A N/A Defines a set of enumerated types for a column. N/A enum_name N/A N/A models CharField max_length 255 db_index True N/A enum_values N/A N/A models ManyToManyField EnumValue null True blank True related_name values __unicode__ N/A N/A self N/A N/A N/A Just grab the first couple and the last enum_values to display. N/A enums N/A list N/A N/A N/A N/A self enum_values all N/A 0 3 N/A enums_string N/A N/A ,  join enums N/A N/A N/A N/A N/A self enum_values count N/A len enums N/A N/A N/A N/A enums_string append N/A N/A  ... {0} format N/A N/A N/A self enum_values last N/A N/A N/A Enum: {0}: Values {1} format N/A self enum_name enums_string N/A N/A Column N/A N/A models Model N/A N/A The name of a column for a given organization. N/A organization N/A N/A models ForeignKey SuperOrganization blank True null True N/A column_name N/A N/A models CharField max_length 512 db_index True N/A unit N/A N/A models ForeignKey Unit blank True null True N/A enum N/A N/A models ForeignKey Enum blank True null True N/A is_extra_data N/A N/A models BooleanField default False Meta N/A N/A N/A unique_together N/A organization column_name is_extra_data N/A __unicode__ N/A N/A self N/A N/A N/A N/A N/A {0} format N/A self column_name N/A N/A ColumnMapping N/A N/A models Model N/A N/A Stores previous user-defined column mapping.

    We'll pull from this when pulling from varried, dynamic
    source data to present the user with previous choices for that
    same field in subsequent data loads.

     N/A user N/A N/A models ForeignKey User blank True null True N/A source_type N/A N/A models IntegerField choices SEED_DATA_SOURCES null True blank True N/A super_organization N/A N/A models ForeignKey SuperOrganization verbose_name N/A _ SeedOrg blank True null True related_name column_mappings N/A column_raw N/A N/A models ManyToManyField Column related_name raw_mappings blank True null True N/A column_mapped N/A N/A models ManyToManyField Column related_name mapped_mappings blank True null True is_direct N/A N/A self N/A N/A N/A 
        Returns True if the ColumnMapping is a direct mapping from imported
        column name to either a BEDES column or a previously imported column.
        Returns False if the ColumnMapping represents a concatenation.
         N/A N/A N/A N/A N/A N/A self column_raw count 1 N/A N/A N/A N/A self column_mapped count 1 N/A is_concatenated N/A N/A self N/A N/A N/A 
        Returns True if the ColumnMapping represents the concatenation of
        imported column names; else returns False.
         N/A N/A N/A N/A self is_direct N/A remove_duplicates N/A N/A self qs m2m_type N/A column_raw N/A N/A Remove any other Column Mappings that use these columns.

        :param qs: queryset of ``Column``. These are the Columns in a M2M with
            this instance.
        :param m2m_type: str, the name of the field we're comparing against.
            Defaults to 'column_raw'.

         N/A N/A N/A N/A N/A N/A N/A N/A ColumnMapping objects filter N/A N/A N/A {0}__in format m2m_type super_organization qs N/A self super_organization exclude pk N/A self pk delete N/A save N/A N/A self N/A args kwargs N/A N/A Overrides default model save to eliminate duplicate mappings.

        .. warning ::
            Other column mappings which have the same raw_columns in them
            will be removed!

         N/A N/A N/A N/A super ColumnMapping self save args kwargs N/A N/A N/A self remove_duplicates N/A N/A N/A self column_raw all N/A __unicode__ N/A N/A self N/A N/A N/A N/A N/A {0}: {1} - {2} format N/A self pk N/A N/A N/A self column_raw all N/A N/A N/A self column_mapped all N/A N/A Schema N/A N/A models Model N/A N/A Groups ColumnMappings together for identification later. N/A name N/A N/A models CharField max_length 50 unique True db_index True N/A organization N/A N/A models ForeignKey SuperOrganization related_name schemas null True blank True N/A columns N/A N/A models ManyToManyField Column related_name schemas __unicode__ N/A N/A self N/A N/A N/A N/A N/A {0}: {1} format N/A self pk N/A self name N/A N/A CanonicalManager N/A N/A models Manager N/A N/A Manager to add useful model filtering methods get_queryset N/A N/A self N/A N/A N/A Return only active CanonicalBuilding rows. N/A N/A N/A N/A N/A N/A super CanonicalManager self get_queryset filter active True N/A N/A CanonicalBuilding N/A N/A models Model N/A N/A 
    One Table to rule them all, One Table to find them, One Table to bring
    them all and in the database bind them.
     N/A canonical_snapshot N/A N/A models ForeignKey BuildingSnapshot blank True null True on_delete N/A models SET_NULL N/A active N/A N/A models BooleanField default True N/A audit_logs N/A N/A generic GenericRelation AuditLog N/A objects N/A CanonicalManager N/A raw_objects N/A N/A models Manager __unicode__ N/A N/A self N/A N/A N/A snapshot_pk None N/A N/A self canonical_snapshot N/A N/A snapshot_pk N/A N/A self canonical_snapshot pk N/A N/A N/A pk: {0} - snapshot: {1} - active: {2} format N/A self pk snapshot_pk N/A self active N/A N/A BuildingSnapshot N/A TimeStampedModel N/A N/A The periodical composite of a building from disparate data sources.

    Represents the best data between all the datasources for a given building,
    potentially merged together with other BuildingSnapshot instances'
    attribute values.

    Two BuildingSnapshots can create a child, forming a match between
    buildings. Thusly, a BuildingSnapshot's co-parent is the other parent of
    its child. The m2m field `children` with related name `parents` allow the
    traversal of the tree. A BuildingSnapshot can have one parent in
    the case where an edit to data was initiated by a user, and the original
    field is preserved (treating BuildingSnapshots as immutable objects) and
    a new BuildingSnapshot is created with the change.

     N/A super_organization N/A N/A models ForeignKey SuperOrganization blank True null True related_name building_snapshots N/A import_file N/A N/A models ForeignKey ImportFile null True blank True N/A canonical_building N/A N/A models ForeignKey CanonicalBuilding blank True null True on_delete N/A models SET_NULL N/A tax_lot_id N/A N/A models CharField max_length 128 null True blank True db_index True N/A tax_lot_id_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A pm_property_id N/A N/A models CharField max_length 128 null True blank True db_index True N/A pm_property_id_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A custom_id_1 N/A N/A models CharField max_length 128 null True blank True db_index True N/A custom_id_1_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A lot_number N/A N/A models CharField max_length 128 null True blank True N/A lot_number_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A block_number N/A N/A models CharField max_length 128 null True blank True N/A block_number_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A property_notes N/A N/A models TextField null True blank True N/A property_notes_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A year_ending N/A N/A models DateField null True blank True N/A year_ending_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A district N/A N/A models CharField max_length 128 null True blank True N/A district_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A owner N/A N/A models CharField max_length 128 null True blank True N/A owner_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A owner_email N/A N/A models CharField max_length 128 null True blank True N/A owner_email_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A owner_telephone N/A N/A models CharField max_length 128 null True blank True N/A owner_telephone_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A owner_address N/A N/A models CharField max_length 128 null True blank True N/A owner_address_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A owner_city_state N/A N/A models CharField max_length 128 null True blank True N/A owner_city_state_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A owner_postal_code N/A N/A models CharField max_length 128 null True blank True N/A owner_postal_code_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A property_name N/A N/A models CharField max_length 255 null True blank True N/A property_name_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A building_count N/A N/A models IntegerField max_length 3 null True blank True N/A building_count_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A gross_floor_area N/A N/A models FloatField null True blank True N/A gross_floor_area_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A address_line_1 N/A N/A models CharField max_length 255 null True blank True db_index True N/A address_line_1_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A address_line_2 N/A N/A models CharField max_length 255 null True blank True db_index True N/A address_line_2_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A city N/A N/A models CharField max_length 255 null True blank True N/A city_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A postal_code N/A N/A models CharField max_length 255 null True blank True N/A postal_code_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A year_built N/A N/A models IntegerField null True blank True N/A year_built_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A recent_sale_date N/A N/A models DateTimeField null True blank True N/A recent_sale_date_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A energy_score N/A N/A models IntegerField null True blank True N/A energy_score_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A site_eui N/A N/A models FloatField null True blank True N/A site_eui_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A generation_date N/A N/A models DateTimeField null True blank True N/A generation_date_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A release_date N/A N/A models DateTimeField null True blank True N/A release_date_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A state_province N/A N/A models CharField max_length 255 null True blank True N/A state_province_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A site_eui_weather_normalized N/A N/A models FloatField null True blank True N/A site_eui_weather_normalized_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A source_eui N/A N/A models FloatField null True blank True N/A source_eui_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A source_eui_weather_normalized N/A N/A models FloatField null True blank True N/A source_eui_weather_normalized_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A energy_alerts N/A N/A models TextField null True blank True N/A energy_alerts_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A space_alerts N/A N/A models TextField null True blank True N/A space_alerts_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A building_certification N/A N/A models CharField max_length 255 null True blank True N/A building_certification_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A conditioned_floor_area N/A N/A models FloatField null True blank True N/A conditioned_floor_area_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A occupied_floor_area N/A N/A models FloatField null True blank True N/A occupied_floor_area_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A use_description N/A N/A models TextField null True blank True N/A use_description_source N/A N/A models ForeignKey BuildingSnapshot related_name + null True blank True N/A children N/A N/A models ManyToManyField BuildingSnapshot null True blank True symmetrical False related_name parents N/A best_guess_confidence N/A N/A models FloatField null True blank True N/A best_guess_canonical_building N/A N/A models ForeignKey CanonicalBuilding related_name best_guess blank True null True N/A match_type N/A N/A models IntegerField choices SEED_MATCH_TYPES null True blank True db_index True N/A confidence N/A N/A models FloatField null True blank True db_index True N/A last_modified_by N/A N/A models ForeignKey User null True blank True N/A source_type N/A N/A models IntegerField choices SEED_DATA_SOURCES null True blank True db_index True N/A canonical_for_ds N/A N/A models ForeignKey ImportRecord null True blank True related_name + N/A extra_data N/A JSONField N/A extra_data_sources N/A JSONField N/A objects N/A JsonManager clean N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super BuildingSnapshot self clean args kwargs N/A date_field_names N/A year_ending generation_date release_date recent_sale_date N/A custom_id_1 N/A getattr self custom_id_1 N/A N/A isinstance custom_id_1 unicode N/A N/A custom_id_1 N/A N/A N/A N/A unicodedata normalize NFKD custom_id_1 encode ascii ignore N/A N/A custom_id_1 N/A N/A len N/A str custom_id_1 128 N/A N/A N/A self custom_id_1 N/A custom_id_1 N/A 128 N/A field date_field_names N/A N/A value N/A getattr self field N/A N/A value N/A isinstance value basestring N/A N/A N/A setattr self field N/A convert_datestr value N/A to_dict N/A N/A self fields N/A None N/A N/A 
        Returns a dict version of this building, either with all fields
        or masked to just those requested.
         N/A fields N/A N/A N/A model_fields ed_fields N/A split_model_fields self fields N/A extra_data N/A self extra_data N/A ed_fields N/A filter N/A N/A N/A f N/A N/A f extra_data ed_fields N/A result N/A field N/A getattr self field N/A field model_fields N/A N/A result N/A extra_data N/A field N/A extra_data N/A field N/A field ed_fields N/A N/A result N/A id N/A result N/A pk N/A self pk N/A N/A result N/A canonical_building N/A N/A self canonical_building N/A N/A self canonical_building pk N/A N/A result N/A children N/A map N/A N/A N/A c N/A N/A c id N/A N/A N/A self children all N/A N/A result N/A parents N/A map N/A N/A N/A p N/A N/A p id N/A N/A N/A self parents all N/A N/A result N/A co_parent N/A N/A self co_parent N/A N/A self co_parent pk N/A N/A result N/A coparent N/A N/A self co_parent N/A field N/A N/A self co_parent pk N/A field N/A pk id N/A result N/A d N/A obj_to_dict self N/A N/A d N/A parents N/A list N/A N/A N/A self parents values_list id flat True N/A N/A d N/A co_parent N/A N/A self co_parent N/A N/A self co_parent pk None N/A d N/A __unicode__ N/A N/A self N/A N/A N/A u_repr N/A id: {0}, pm_property_id: {1}, tax_lot_id: {2},  confidence: {3} N/A N/A N/A u_repr format N/A self pk N/A self pm_property_id N/A self tax_lot_id N/A self confidence N/A has_children N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self children all exists N/A property co_parent N/A N/A self N/A N/A N/A returns the first co-parent as a BuildingSnapshot inst N/A N/A N/A self has_children N/A N/A N/A first_child N/A N/A N/A N/A self children all N/A 0 N/A parent N/A N/A N/A first_child parents all N/A N/A N/A N/A parent pk N/A self pk N/A N/A parent N/A property co_parents N/A N/A self N/A N/A N/A returns co-parents for a BuildingSnapshot as a queryset N/A N/A N/A N/A N/A N/A BuildingSnapshot objects filter children__parents self exclude pk N/A self pk N/A property recurse_tree N/A N/A self attr N/A N/A N/A Recurse M2M relationship tree, extending list as we go.

        :param attr: str, name of attribute we wish to traverse.
            .e.g. 'children', or 'parents'

         N/A nodes N/A N/A node_type N/A getattr self attr N/A node N/A N/A node_type all N/A N/A N/A N/A nodes extend N/A N/A node recurse_tree attr N/A N/A N/A nodes extend N/A N/A node_type all N/A nodes N/A child_tree N/A N/A self N/A N/A N/A Recurse to give us a merge-order list of children. N/A children N/A N/A self recurse_tree children N/A N/A N/A children reverse N/A children N/A property parent_tree N/A N/A self N/A N/A N/A Recurse to give us merge-order list of parents. N/A N/A N/A self recurse_tree parents N/A property tip N/A N/A self N/A N/A N/A returns the tip (leaf) of the BuildingSnapshot tree N/A children N/A self child_tree N/A children N/A N/A N/A children N/A -1 N/A N/A self N/A property N/A AttributeOption N/A N/A models Model N/A N/A Holds a single conflicting value for a BuildingSnapshot attribute. N/A value N/A N/A models CharField max_length 255 N/A value_source N/A N/A models IntegerField choices SEED_DATA_SOURCES N/A building_variant N/A N/A models ForeignKey BuildingAttributeVariant null True blank True related_name options N/A BuildingAttributeVariant N/A N/A models Model N/A N/A Place to keep the options of BuildingSnapshot attribute variants.

    When we want to select which source's values should sit in the Canonical
    Building's position, we need to draw from a set of options determined
    during the matching phase. We should only have one 'Variant' container
    per field_name, per snapshot.

     N/A field_name N/A N/A models CharField max_length 255 N/A building_snapshot N/A N/A models ForeignKey BuildingSnapshot related_name variants null True blank True Meta N/A N/A N/A unique_together N/A field_name building_snapshot N/A N/A Meter N/A N/A models Model N/A N/A Meter specific attributes. N/A name N/A N/A models CharField max_length 100 N/A building_snapshot N/A N/A models ManyToManyField BuildingSnapshot related_name meters null True blank True N/A business N/A N/A models ForeignKey Business related_name meters null True blank True N/A energy_type N/A N/A models IntegerField max_length 3 choices ENERGY_TYPES N/A energy_units N/A N/A models IntegerField max_length 3 choices ENERGY_UNITS to_dict N/A N/A self N/A N/A N/A serializes Meter to python dict, JSON safe N/A m N/A obj_to_dict self N/A N/A m N/A energy_type N/A N/A self get_energy_type_display N/A N/A m N/A energy_units N/A N/A self get_energy_units_display N/A m N/A N/A TimeSeries N/A N/A models Model N/A N/A For storing engergy use over time. N/A begin_time N/A N/A models DateTimeField null True blank True N/A end_time N/A N/A models DateTimeField null True blank True N/A reading N/A N/A models FloatField null True N/A cost N/A N/A models DecimalField max_digits 11 decimal_places 4 null True N/A occupancy N/A N/A models DecimalField max_digits 5 decimal_places 2 null True N/A meter N/A N/A models ForeignKey Meter related_name timeseries_data null True blank True to_dict N/A N/A self N/A N/A N/A serializes TimeSeries to python dict, JSON safe N/A m N/A obj_to_dict self N/A N/A m N/A cost N/A N/A N/A self cost None N/A float N/A self cost None N/A N/A N/A self occupancy None N/A N/A N/A m N/A occupancy N/A float N/A self occupancy N/A m N/A N/A Business N/A N/A models Model N/A N/A name N/A N/A models CharField max_length 100 N/A address N/A N/A models CharField max_length 255 null True blank True N/A description N/A N/A models CharField max_length 255 null True blank True N/A unit_number N/A N/A models CharField max_length 5 null True blank True N/A owner N/A N/A models ForeignKey contacts.Contact null True blank True N/A gross_floor_area N/A N/A models FloatField null True blank True N/A building_snapshot N/A N/A models ManyToManyField BuildingSnapshot related_name businesses null True blank True N/A occupancy N/A N/A models FloatField null True help_text the occupancy percentage * 100, range 0.0 to 100.0 __unicode__ N/A N/A self N/A N/A N/A N/A %s N/A self name N/A N/A UtilityAccount N/A N/A models Model N/A N/A account_holder N/A N/A models ForeignKey contacts.Contact null True blank True N/A account_number N/A N/A models CharField max_length 100 null True blank True N/A canonical_building N/A N/A models ForeignKey CanonicalBuilding N/A utility N/A N/A models ForeignKey Utility N/A Utility N/A N/A models Model N/A N/A name N/A N/A models CharField max_length 100 N/A address N/A N/A models CharField max_length 255 null True blank True N/A utility_type N/A N/A models IntegerField max_length 3 choices ENERGY_TYPES N/A business N/A N/A models ManyToManyField Business related_name utilities null True blank True N/A building_snapshot N/A N/A models ManyToManyField BuildingSnapshot related_name utilities null True blank True N/A accounts N/A N/A models ManyToManyField CanonicalBuilding through UtilityAccount __unicode__ N/A N/A self N/A N/A N/A N/A N/A {0} format N/A self name N/A to_dict N/A N/A self N/A N/A N/A N/A obj_to_dict self N/A N/A