Module Import alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias ImportFrom alias alias alias alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias Import alias Import alias identifier Import alias identifier Import alias identifier Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str FunctionDef arguments args defaults body Expr Str FunctionDef arguments args defaults body Global identifier Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpAdd BinOpAdd BinOpMult Str Num Str BinOpMult Str Num Expr Call NameLoad BinOpAdd Str NameLoad Expr Call NameLoad BinOpAdd BinOpAdd BinOpMult Str Num Str BinOpMult Str Num decorator_list Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq Call NameLoad NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Num If CompareGt Call NameLoad NameLoad Num body Assign TupleStore NameStore NameStore NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Num body Assign NameStore BinOpAdd Str SubscriptLoad NameLoad Index Num orelse Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore Call AttributeLoad NameLoad attr Str Num If CompareGt Call NameLoad NameLoad Num body Assign TupleStore NameStore NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad Str NameLoad Str NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad Assign NameStore BinOpAdd BinOpAdd Str Call AttributeLoad Str attr NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpAdd TupleLoad SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Slice Num Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str Str Assign NameStore ListLoad TupleLoad Str Str NameLoad Assign NameStore Call NameLoad Str ListLoad Str Str Str Str Str FunctionDef arguments args defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str Str Assign NameStore ListLoad TupleLoad Str Str NameLoad Assign NameStore Call NameLoad Str ListLoad Str Str Str Str Str FunctionDef arguments args defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str Dict Str Call NameLoad ListLoad Str TupleLoad Str Str Dict Str Call NameLoad ListLoad Str TupleLoad Str Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str NameLoad FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotIn Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str body Raise Call NameLoad NameLoad Str orelse Assign NameStore Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotIn Call AttributeLoad Call AttributeLoad NameLoad attr Str attr ListLoad Str Str Str Str Str body Raise Call NameLoad NameLoad Str orelse Assign NameStore Str If Call AttributeLoad NameLoad attr Str body If CompareEq Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Str orelse Assign NameStore Str orelse Assign NameStore Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr orelse Raise Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad TupleLoad Str Str TupleLoad Str Str Assign NameStore Call NameLoad ListLoad TupleLoad Str Str FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return CompareEq Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad NameLoad Str If BoolOpAnd CompareGt Call NameLoad NameLoad Num CompareEq Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore ListComp Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad orelse Assign NameStore NameLoad AugAssignAdd NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad TupleLoad Str Str TupleLoad Str Str Assign NameStore Call NameLoad ListLoad TupleLoad Str Str FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return CompareEq Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body If UnaryOpNot BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Raise Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str If BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad NameLoad attr Str attr body Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore Str Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad Delete NameDel Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad TupleLoad Str Str Assign NameStore Call NameLoad ListLoad TupleLoad Str Str Pass decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad TupleLoad Str Str Assign NameStore Call NameLoad ListLoad TupleLoad Str Str Pass decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str If Call AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Str NameLoad Str Str Str NameLoad Str Str Str NameLoad Str orelse Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Str NameLoad Str Str Str NameLoad Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str AugAssignAdd NameStore BinOpAdd Str Call AttributeLoad Call NameLoad NameLoad attr orelse AugAssignAdd NameStore Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str AugAssignAdd NameStore BinOpAdd Str Call AttributeLoad Call NameLoad NameLoad attr orelse AugAssignAdd NameStore Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad orelse Assign NameStore Str AugAssignAdd NameStore Str Expr Call NameLoad NameLoad NameLoad NameLoad Raise Call NameLoad NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str FunctionDef arguments args NameParam defaults body Global identifier Assign NameStore Dict Str Str Str Str Str Str Str Str Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq NameLoad Str body AugAssignAdd NameStore BinOpAdd Str Call AttributeLoad Str attr ListLoad Call NameLoad NameLoad BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str orelse AugAssignAdd NameStore BinOpAdd Str Call AttributeLoad Str attr ListLoad Call NameLoad NameLoad Call NameLoad NameLoad AugAssignAdd NameStore BinOpAdd BinOpAdd BinOpAdd Str Str NameLoad Str AugAssignAdd NameStore BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd NameLoad Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad orelse If BoolOpOr BoolOpAnd Call AttributeLoad NameLoad attr Str CompareEq SubscriptLoad NameLoad Index Str NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str AugAssignAdd NameStore Str AugAssignAdd NameStore Str Expr Call NameLoad NameLoad NameLoad NameLoad Raise Call NameLoad NameLoad NameLoad If BoolOpOr BoolOpAnd Call AttributeLoad NameLoad attr Str CompareEq SubscriptLoad NameLoad Index Str NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad BinOpAdd BinOpAdd Str NameLoad Str NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad FunctionDef arguments args NameParam defaults body Global identifier Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str TupleLoad Str NameLoad NameLoad TupleLoad Str AttributeLoad NameLoad attr NameLoad TupleLoad Str AttributeLoad NameLoad attr NameLoad TupleLoad Str AttributeLoad NameLoad attr NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad FunctionDef arguments args NameParam defaults body Global identifier Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str TupleLoad Str NameLoad NameLoad TupleLoad Str AttributeLoad NameLoad attr NameLoad TupleLoad Str AttributeLoad NameLoad attr NameLoad TupleLoad Str AttributeLoad NameLoad attr NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad FunctionDef arguments args NameParam defaults body Global identifier Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str TupleLoad Str NameLoad NameLoad TupleLoad Str AttributeLoad NameLoad attr NameLoad TupleLoad Str AttributeLoad NameLoad attr NameLoad TupleLoad Str AttributeLoad NameLoad attr NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Str NameLoad TupleLoad Str Str NameLoad TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad FunctionDef arguments args NameParam defaults body Global identifier Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str TupleLoad Str NameLoad NameLoad TupleLoad Str AttributeLoad NameLoad attr NameLoad TupleLoad Str AttributeLoad NameLoad attr NameLoad TupleLoad Str AttributeLoad NameLoad attr NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Assign NameStore Call NameLoad ListLoad TupleLoad Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad NameLoad Str If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad BinOpAdd Str AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad BinOpAdd Str AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad BinOpAdd Str AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad AttributeLoad NameLoad attr ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Assign NameStore Call NameLoad ListLoad TupleLoad Str Str FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str NameLoad Assign NameStore Dict Str Str Str Str TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad TupleLoad Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call NameLoad BinOpAdd Str NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call NameLoad BinOpAdd Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad Assign NameStore ListLoad TupleLoad Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If Call AttributeLoad NameLoad attr Str body If Call AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str If Call AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Delete NameDel Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call NameLoad BinOpAdd Str AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call NameLoad BinOpAdd Str NameLoad NameLoad NameLoad Expr Call NameLoad BinOpAdd Str NameLoad NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad AttributeLoad NameLoad attr Raise Call NameLoad NameLoad AttributeLoad NameLoad attr ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Dict Str Str Call NameLoad ListLoad Str NameLoad Assign NameStore ListLoad TupleLoad Str Str FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr orelse If Call AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq NameLoad Str body Assign NameStore Str Assign AttributeStore NameLoad attr NameLoad If Call AttributeLoad NameLoad attr Str body If Call AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call NameLoad BinOpAdd Str AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad AttributeLoad NameLoad attr ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str Dict Str Call NameLoad ListLoad Str TupleLoad Str Str Assign NameStore ListLoad TupleLoad Str Str FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr Str body Print Str Expr Call NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Global identifier Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Str NameLoad Str Str Str NameLoad Str AugAssignAdd NameStore BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr Str body TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str If BoolOpOr CompareLtE NameLoad Num CompareGt NameLoad Num body Raise Call NameLoad NameLoad Str AugAssignAdd NameStore BinOpAdd Str Call NameLoad NameLoad handlers ExceptHandler body Raise Call NameLoad NameLoad Str If Call AttributeLoad NameLoad attr Str body TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str If CompareLtE NameLoad Num body Raise Call NameLoad NameLoad Str AugAssignAdd NameStore BinOpAdd Str Call NameLoad NameLoad handlers ExceptHandler body Raise Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str NameLoad orelse Assign NameStore Str Expr Call NameLoad NameLoad NameLoad Raise Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Call NameLoad ListLoad Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str NameLoad TupleLoad Str Str Assign NameStore ListLoad TupleLoad Str Str FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Global identifier Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd BinOpAdd Str NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad BinOpAdd Str NameLoad NameLoad NameLoad Expr Call NameLoad BinOpAdd Str NameLoad NameLoad NameLoad Expr Call NameLoad BinOpAdd Str NameLoad NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Num body Raise Call NameLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Assign NameStore ListLoad TupleLoad Str Str FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str Str Expr Call NameLoad Str NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr If Call AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr orelse Assign NameStore Str Assign NameStore ListLoad Assign NameStore Dict For NameStore ListLoad Str Str Str body If Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareNotEq NameLoad Dict CompareNotEq Call AttributeLoad NameLoad attr ListLoad Str Str Str body Raise Call NameLoad NameLoad Str orelse If BoolOpAnd CompareNotEq NameLoad Dict CompareNotEq AttributeLoad NameLoad attr ListLoad Str Str Str body Expr Call AttributeLoad NameLoad attr ListLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Str Assign NameStore NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Delete NameDel Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str For NameStore NameLoad body If CompareEq NameLoad Str body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num If CompareEq SubscriptLoad NameLoad Index Num Num body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpAdd NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore NameLoad For NameStore NameLoad body If CompareIn SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpAdd ListLoad NameLoad SubscriptLoad NameLoad Slice Num Num Delete NameDel Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad BinOpAdd Str NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad AttributeLoad NameLoad attr ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str FunctionDef arguments args NameParam defaults body Global identifier Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str For NameStore AttributeLoad NameLoad attr body If BoolOpAnd CompareNotEq SubscriptLoad NameLoad Index Num Str CompareNotEq SubscriptLoad NameLoad Index Num Str body If Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr orelse If BoolOpOr CompareEq SubscriptLoad NameLoad Index Num Str CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Index Num NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Num TryExcept body If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Slice Num Num attr orelse Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Slice Num Num Expr Call AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Index Num NameLoad handlers ExceptHandler type NameLoad body Pass If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad Delete NameDel Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad AttributeLoad NameLoad attr ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Str Str Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad Str NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str Str Assign NameStore Dict Assign NameStore Str Assign NameStore Dict Str Str Str Str For NameStore NameLoad body Assign ListStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Call NameLoad NameLoad orelse Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call NameLoad ListLoad NameLoad If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Global identifier identifier Global identifier Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Import alias Import alias Assign SubscriptStore Call NameLoad Index Str NameLoad Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Global identifier Expr Call NameLoad BinOpMult Str Num Expr Call NameLoad Str NameLoad NameLoad Expr Call NameLoad Str Expr Call NameLoad BinOpAdd Str NameLoad Expr Call NameLoad BinOpAdd Str NameLoad Expr Call NameLoad BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call NameLoad Str Expr Call NameLoad BinOpAdd Str NameLoad Expr Call NameLoad BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad BinOpMult Str Num Expr Call NameLoad BinOpMult Str Num Expr Call NameLoad BinOpAdd Str NameLoad Expr Call NameLoad BinOpMult Str Num Expr Call NameLoad BinOpMult Str Num decorator_list FunctionDef arguments args defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body For NameStore NameLoad body Assign NameStore Dict Str NameLoad If CompareEq Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index Num NameLoad orelse Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Dict Global identifier Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Print BinOpMult BinOpAdd BinOpAdd BinOpAdd BinOpMult Str Num Str BinOpMult Str Num Str Num Print Str Print Str Print BinOpAdd BinOpAdd Str NameLoad Str Print Str Print BinOpMult BinOpAdd BinOpAdd BinOpAdd BinOpMult Str Num Str BinOpMult Str Num Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body If CompareNotIn SubscriptLoad NameLoad Index Num NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num Dict Assign NameStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num If CompareNotIn SubscriptLoad NameLoad Index Num NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num ListLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num attr TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Return NameLoad decorator_list NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad TupleLoad NameLoad Dict Str Str Call NameLoad NameLoad ListLoad TupleLoad Str BinOpMod Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Dict Str NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Num attr attr TupleLoad Str Str NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad Dict Str Str Str Str Str BinOpAdd ListLoad NameLoad NameLoad NameLoad NameLoad Call NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad ListLoad TupleLoad NameLoad Dict Str NameLoad TupleLoad NameLoad Dict Str NameLoad TupleLoad NameLoad Dict Str NameLoad TupleLoad NameLoad Dict Str NameLoad TupleLoad NameLoad Dict Str NameLoad TupleLoad NameLoad Dict Str NameLoad ListLoad NameLoad NameLoad
N/A N/A csv datetime datetime N/A glob N/A itertools N/A os N/A shutil N/A sys N/A subprocess N/A traceback core.modules.vistrails_module Module ModuleError ModuleConnector core.modules.basic_modules File Directory Path new_constant Constant packages.spreadsheet.basic_widgets SpreadsheetCell CellLocation packages.spreadsheet.spreadsheet_cell QCellWidget QCellToolBar core.modules.basic_modules List core.modules.basic_modules String PyQt4 QtCore QtGui widgets get_predictor_widget get_predictor_config enum_widget build_enum_widget SelectPredictorsLayers SelectListDialog N/A utils N/A packages.sahm.pySAHM.FieldDataQuery FDQ N/A packages.sahm.pySAHM.MDSBuilder MDSB N/A packages.sahm.pySAHM.PARC parc N/A packages.sahm.pySAHM.RasterFormatConverter RFC N/A packages.sahm.pySAHM.MaxentRunner MaxentRunner SahmOutputViewer SAHMModelOutputViewerCell SahmSpatialOutputViewer SAHMSpatialOutputViewerCell utils writetolog pySAHM.utilities TrappedError SahmSpatialOutputViewer setQGIS N/A identifier gov.usgs.sahm menu_items N/A N/A N/A N/A N/A  Add a menu item which allows users to specify their session directory
     change_session_folder N/A N/A N/A N/A N/A session_dir N/A path N/A str N/A N/A N/A QtGui QFileDialog getExistingDirectory None Browse to new session folder - N/A session_dir path N/A N/A N/A utils setrootdir path N/A N/A writetolog N/A N/A N/A * 79 N/A * 79 N/A N/A writetolog N/A  output directory:    session_dir N/A N/A writetolog N/A N/A N/A * 79 N/A * 79 N/A N/A lst N/A N/A N/A N/A lst append N/A Change session folder change_session_folder N/A lst N/A expand_ports N/A N/A port_list N/A N/A N/A new_port_list N/A N/A port port_list N/A N/A port_spec N/A port N/A 1 N/A N/A N/A type port_spec str N/A N/A N/A N/A port_spec startswith ( N/A N/A port_spec N/A port_spec N/A 1 N/A N/A N/A port_spec endswith ) N/A N/A port_spec N/A port_spec N/A -1 N/A new_spec_list N/A N/A spec N/A N/A port_spec split , N/A N/A spec N/A N/A spec strip N/A parts N/A N/A spec split : 1 N/A namespace None N/A N/A N/A len parts 1 N/A N/A mod_parts N/A N/A N/A parts N/A 1 rsplit | 1 N/A N/A N/A len mod_parts 1 N/A N/A N/A namespace module_name mod_parts N/A N/A module_name N/A parts N/A 1 N/A N/A N/A len N/A N/A N/A parts N/A 0 split . 1 N/A N/A id_str N/A edu.utah.sci.vistrails. N/A parts N/A 0 N/A N/A id_str N/A parts N/A 0 N/A N/A mod_parts N/A N/A spec rsplit | 1 N/A N/A N/A len mod_parts 1 N/A N/A N/A namespace module_name mod_parts N/A N/A module_name spec N/A id_str identifier N/A namespace N/A N/A N/A N/A new_spec_list append N/A N/A N/A N/A id_str : module_name : namespace N/A N/A N/A N/A new_spec_list append N/A N/A id_str : module_name N/A port_spec N/A N/A ( N/A N/A , join new_spec_list ) N/A N/A N/A new_port_list append N/A N/A N/A port N/A 0 port_spec N/A port N/A 2 N/A new_port_list N/A FieldData N/A Path N/A N/A 
    Field Data

    The FieldData module allows a user to add presence/absence points or count data recorded across a
    landscape for the phenomenon being modeled (e.g., plant sightings, evidence of animal presence, etc.).
    The input data for this module must be in the form of a .csv file that follows one of two formats: 

    Format 1
    A .csv file with the following column headings, in order: "X," "Y," and "responseBinary".
    In this case, the "X" field should be populated with the horizontal (longitudinal) positional
    data for a sample point. The "Y" field should be populated with the vertical (latitudinal) data
    for a sample point. These values must be in the same coordinate system/units as the template
    layer used in the workflow. The column "responseBinary" should be populated with either a '0'
    (indicating absence at the point) or a '1' (indicating presence at the point).

    Format 2
    A .csv file with the following column headings, in order: "X," "Y," and "responseCount".
    In this case, the "X" field should be populated with the horizontal (longitudinal) positional
    data for a sample point. The "Y" field should be populated with the vertical (latitudinal) data
    for a sample point. These values must be in the same coordinate system/units as the template
    layer used in the workflow. The column "responseCount" should be populated with either a '-9999'
    (indicating that the point is a background point) or a numerical value (either '0' or a positive integer)
    indicating the number of incidences of the phenomenon recorded at that point.
     N/A _output_ports N/A N/A value (gov.usgs.sahm:FieldData:DataInput) N/A value_as_string (edu.utah.sci.vistrails.basic:String) True N/A AggregationMethod N/A String N/A N/A 
    This module is a required class for other modules and scripts within the
    SAHM package. It is not intended for direct use or incorporation into
    the VisTrails workflow by the user.
     N/A _input_ports N/A N/A value (gov.usgs.sahm:AggregationMethod:Other) N/A _output_ports N/A N/A value_as_string (edu.utah.sci.vistrails.basic:String) True N/A _widget_class N/A build_enum_widget AggregationMethod N/A Mean Max Min Majority None get_widget_class N/A N/A N/A N/A N/A N/A AggregationMethod _widget_class N/A staticmethod N/A ResampleMethod N/A String N/A N/A 
    This module is a required class for other modules and scripts within the
    SAHM package. It is not intended for direct use or incorporation into
    the VisTrails workflow by the user.
     N/A _input_ports N/A N/A value (gov.usgs.sahm:ResampleMethod:Other) N/A _output_ports N/A N/A value_as_string (edu.utah.sci.vistrails.basic:String) True N/A _widget_class N/A build_enum_widget ResampleMethod N/A NearestNeighbor Bilinear Cubic CubicSpline Lanczos get_widget_class N/A N/A N/A N/A N/A N/A ResampleMethod _widget_class N/A staticmethod N/A Predictor N/A Constant N/A N/A 
    Predictor
    
    The Predictor module allows a user to select a single raster layer for consideration in the
    modeled analysis. Four parameters must be specified by the user:
    
    1. Aggregation Method: The aggregation method to be used in the event that the raster layer
    must be up-scaled to match the template layer (e.g., generalizing a 10 m input layer to a
    100 m output layer). Care should be taken to ensure that the aggregation method that
    best preserves the integrity of the data is used.
    
    2. Resample Method: The resample method employed to interpolate new cell values when
    transforming the raster layer to the coordinate space or cell size of the template layer,
    if necessary. 
    
    3. Categorical (Boolean): Checking this box indicates that the data contained in the raster
    layer is categorical (e.g. landcover categories). Leaving this box unchecked indicates that
    the data contained in the raster is continuous (e.g., a DEM layer). This distinction is important
    in determining an appropriate resampling method.
    
    4. File Path: The location of the raster predictor file, which a user can specify by navigating to the
    file's location on their file system. When a user is selecting an ESRI grid raster, the user should navigate
    to the 'hdr.adf' file contained within the grid folder.

     N/A _input_ports N/A N/A categorical (edu.utah.sci.vistrails.basic:Boolean) N/A ResampleMethod (gov.usgs.sahm:ResampleMethod:Other) N/A defaults N/A str N/A Bilinear N/A AggregationMethod (gov.usgs.sahm:AggregationMethod:Other) N/A defaults N/A str N/A Mean N/A file (edu.utah.sci.vistrails.basic:Path) N/A _output_ports N/A N/A value (gov.usgs.sahm:Predictor:DataInput) N/A value_as_string (edu.utah.sci.vistrails.basic:String) True compute N/A N/A self N/A N/A N/A N/A N/A self has_input ResampleMethod N/A N/A resampleMethod N/A N/A self get_input ResampleMethod N/A N/A N/A N/A resampleMethod lower N/A nearestneighbor bilinear cubic cubicspline lanczos N/A N/A N/A ModuleError self Resample Method not one of 'nearestneighbor', 'bilinear', 'cubic', 'cubicspline', or 'lanczos' N/A N/A resampleMethod Bilinear N/A N/A N/A self has_input AggregationMethod N/A N/A aggregationMethod N/A N/A self get_input AggregationMethod N/A N/A N/A N/A N/A N/A self get_input AggregationMethod lower N/A mean max min majority none N/A N/A N/A ModuleError self No Aggregation Method specified N/A N/A aggregationMethod Mean N/A N/A N/A self has_input categorical N/A N/A N/A N/A N/A self get_input categorical True N/A N/A categorical 1 N/A N/A categorical 0 N/A N/A categorical 0 N/A N/A N/A self has_input file N/A N/A inFile N/A N/A utils getRasterName N/A N/A N/A self get_input file name N/A N/A N/A ModuleError self No input file specified N/A N/A N/A self set_output value N/A inFile categorical resampleMethod aggregationMethod N/A N/A PredictorList N/A Constant N/A N/A 
    This module is a required class for other modules and scripts within the
    SAHM package. It is not intended for direct use or incorporation into
    the VisTrails workflow by the user.
     N/A _input_ports N/A expand_ports N/A N/A value Other|PredictorList N/A addPredictor DataInput|Predictor N/A _output_ports N/A expand_ports N/A N/A value Other|PredictorList translate_to_string N/A N/A v N/A N/A N/A N/A str v N/A staticmethod translate_to_python N/A N/A v N/A N/A N/A v_list N/A eval v N/A v_list N/A staticmethod validate N/A N/A x N/A N/A N/A N/A N/A type x list N/A staticmethod compute N/A N/A self N/A N/A N/A p_list N/A N/A self force_get_input_list addPredictor N/A v N/A N/A self force_get_input value N/A N/A b N/A N/A self validate v N/A N/A b N/A N/A N/A ModuleError self Internal Error: Constant failed validation N/A N/A N/A N/A len v 0 N/A N/A type N/A v N/A 0 tuple N/A N/A f_list N/A N/A N/A utils create_file_module N/A v_elt N/A 1 N/A v_elt v N/A N/A f_list v N/A p_list f_list N/A N/A N/A self set_output value v N/A N/A PredictorListFile N/A Module N/A N/A 
    Predictor List File

    The PredictorListFile module allows a user to load a .csv file containing a list
    of rasters for consideration in the modeled analysis. The .csv file should contain
    a header row and four columns containing the following information, in order, for
    each raster input. 
    
    Column 1: The full file path to the input raster layer.
    
    Column 2: A binary value indicating whether the input layer is categorical or not.
    A value of "0" indicates that an input raster is non-categorical data (continuous),
    while a value of "1" indicates that an input raster is categorical data.
    
    Column 3: The resampling method employed to interpolate new cell values when
    transforming the raster layer to the coordinate space or cell size of the template
    layer, if necessary. The resampling type should be specified using one of the following
    values: "nearestneighbor," "bilinear," "cubic," or "lanczos."
    
    Column 4: The aggregation method to be used in the event that the raster layer
    must be up-scaled to match the template layer (e.g., generalizing a 10 m input layer to a
    100 m output layer). Care should be taken to ensure that the aggregation method that
    best preserves the integrity of the data is used. The aggregation should be specified
    using one of the following values: "Min," "Mean," "Max," "Majority," or "None."

    In formatting the list of predictor files, the titles assigned to each of the columns
    are unimportant as the module retrieves the information based on the order of the
    values in the .csv file (the ordering of the information and the permissible values
    in the file however, are strictly enforced). The module also anticipates a header row
    and will ignore the first row in the .csv file.

     N/A _input_ports N/A expand_ports N/A N/A csvFileList (edu.utah.sci.vistrails.basic:File) N/A addPredictor DataInput|Predictor N/A _output_ports N/A expand_ports N/A N/A RastersWithPARCInfoCSV (gov.usgs.sahm:RastersWithPARCInfoCSV:Other) translate_to_string N/A N/A v N/A N/A N/A N/A str v N/A staticmethod translate_to_python N/A N/A v N/A N/A N/A v_list N/A eval v N/A v_list N/A staticmethod validate N/A N/A x N/A N/A N/A N/A N/A type x list N/A staticmethod compute N/A N/A self N/A N/A N/A N/A N/A N/A N/A self has_input csvFileList N/A N/A self has_input addPredictor N/A N/A N/A ModuleError self No inputs or CSV file provided N/A output_fname N/A N/A utils mknextfile prefix PredictorList_ suffix .csv N/A N/A N/A N/A self has_input csvFileList N/A N/A N/A os path exists N/A N/A N/A self get_input csvFileList name N/A N/A N/A N/A shutil copy N/A N/A N/A self get_input csvFileList name output_fname N/A csv_writer N/A N/A csv writer N/A open output_fname ab N/A N/A csv_writer N/A N/A csv writer N/A open output_fname wb N/A N/A N/A csv_writer writerow N/A file Resampling Aggregation N/A N/A N/A self has_input addPredictor N/A N/A p_list N/A N/A self force_get_input_list addPredictor N/A p p_list N/A N/A N/A N/A p has_input resampleMethod N/A N/A resMethod N/A N/A p get_input resampleMethod N/A N/A resMethod NearestNeighbor N/A N/A N/A p has_input aggregationMethod N/A N/A aggMethod N/A N/A p get_input aggregationMethod N/A N/A aggMethod Mean N/A N/A N/A csv_writer writerow N/A N/A N/A N/A os path normpath N/A p name resMethod aggMethod N/A csv_writer N/A output_file N/A N/A utils create_file_module output_fname N/A N/A N/A self set_output RastersWithPARCInfoCSV output_file N/A N/A TemplateLayer N/A Path N/A N/A 
    Template Layer

    The TemplateLayer is a raster data layer with a defined coordinate system, a known cell size,
    and an extent that defines the study area. This raster layer serves as the template for all
    the other inputs in the analysis. All additional raster layers used in the analysis will be
    resampled and reprojected as needed to match the template, snapped to the template, and
    clipped to have an extent that matches the template. Users should ensure that any additional
    layers considered in the analysis have coverage within the extent of the template layer.

    The TemplateLayer is a required input for the PARC module.

     N/A _output_ports N/A N/A value (gov.usgs.sahm:TemplateLayer:DataInput) N/A value_as_string (edu.utah.sci.vistrails.basic:String) True N/A MergedDataSet N/A File N/A N/A 
    This module is a required class for other modules and scripts within the
    SAHM package. It is not intended for direct use or incorporation into
    the VisTrails workflow by the user.
     N/A _input_ports N/A expand_ports N/A N/A mdsFile (edu.utah.sci.vistrails.basic:File) N/A _output_ports N/A expand_ports N/A N/A value (gov.usgs.sahm:MergedDataSet:Other) N/A N/A RastersWithPARCInfoCSV N/A File N/A N/A 
    This module is a required class for other modules and scripts within the
    SAHM package. It is not intended for direct use or incorporation into
    the VisTrails workflow by the user.
     N/A _input_ports N/A expand_ports N/A N/A mdsFile (edu.utah.sci.vistrails.basic:File) N/A _output_ports N/A expand_ports N/A N/A value (gov.usgs.sahm:MergedDataSet:Other) N/A N/A ApplyModel N/A Module N/A N/A 
    Apply Model

    The ApplyModel module allows the user to apply a model developed using a
    particular package within the workflow and generate output probability and binary
    maps. The process of creating an output probability map and binary map based on
    a particular model can be time-consuming, depending on the input data. By
    existing as a stand-alone process in the workflow, the ApplyModel module allows
    a user to investigate the performance metrics for a particular model (such as
    the ROC curve or the AUC) before dedicating the processing time needed to generate
    the output maps. In most cases, a user will "fine tune" a model by exploring the
    performance metrics of different model iterations before applying the model and
    generating the actual maps as a final step.
    
    The ApplyModel module also provides the user with the option of projecting the results
    of a model developed from one set of environmental predictors onto a new modeled space
    containing that same set of environmental predictors but representing data captured at
    a different temporal or spatial location. For example, a user could generate a model
    predicting habitat suitability using recorded presence points and certain environmental
    predictors such as elevation, landcover, and proximity to water in one geographic
    location. Based on the training from this information, the modeled results could be
    generated for (or "projected to") a new location based on the range of values seen in
    elevation, landcover, and proximity to water in the second geographic area. Similarly,
    modeling predicted results through time is also possible. A model trained using field
    data and a set of predictor layers representative of one time period could be projected
    onto the same geographical area using a new set of layers corresponding to the same
    predictors but representing data from a different time period (e.g., different climate
    data).

    The ApplyModel module accepts two inputs from the user:

    1. Model Workspace: The model workspace field accepts as an input a modeling
    package element (complete with all required parameters) from upstream in the workflow.
    The inputs and specifications provided in the dialogue fields of the model will be applied
    and used to generate the output maps. A user should populate the model workspace field by
    connecting a model element to the appropriate input port of the ApplyModel module in the
    visual display of the model workflow.
    
    2. Projection Target: The projection target is an optional parameter that allows a user to
    apply a model to a particular geographic area and or set of predictors (other than those
    used to train the model) and create output maps within the spatial extent of the projection
    target layers. This input field should be populated by connecting either the output of the
    ProjectionLayers module or a separate MDSBuilder element to the appropriate input port of
    the ApplyModel module.
    
     N/A _input_ports N/A N/A projectionTarget (gov.usgs.sahm:MergedDataSet:Other) N/A modelWorkspace (edu.utah.sci.vistrails.basic:File) N/A makeBinMap (edu.utah.sci.vistrails.basic:Boolean) N/A makeProbabilityMap (edu.utah.sci.vistrails.basic:Boolean) N/A _output_ports N/A N/A BinaryMap (edu.utah.sci.vistrails.basic:File) N/A ProbabilityMap (edu.utah.sci.vistrails.basic:File) compute N/A N/A self N/A N/A N/A workspace N/A N/A N/A self force_get_input modelWorkspace name N/A output_dname N/A N/A utils mknextdir prefix AppliedModel_ N/A N/A N/A self has_input projectionTarget N/A N/A mdsFile N/A N/A N/A self force_get_input projectionTarget name N/A args N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A ws= " workspace "  c= " mdsFile "  o= " output_dname " N/A N/A args N/A N/A N/A N/A N/A N/A N/A ws= " workspace "  o= " output_dname " N/A N/A N/A self has_input makeBinMap N/A N/A makeBinMap N/A N/A self force_get_input makeBinMap N/A args N/A  mbt= N/A N/A N/A str makeBinMap upper N/A N/A args  mbt=TRUE N/A N/A N/A self has_input makeProbabilityMap N/A N/A makeProbabilityMap N/A N/A self force_get_input makeProbabilityMap N/A args N/A  mpt= N/A N/A N/A str makeProbabilityMap upper N/A N/A args  mpt=TRUE N/A N/A N/A utils runRScript PredictModel.r args self N/A input_fname N/A N/A N/A os path join output_dname prob_map.tif N/A output_fname N/A N/A N/A os path join output_dname prob_map.jpeg N/A N/A N/A N/A os path exists input_fname N/A N/A N/A N/A utils tif_to_color_jpeg input_fname output_fname color_breaks_csv N/A output_file1 N/A N/A utils create_file_module output_fname N/A N/A N/A self set_output ProbabilityMap output_file1 N/A N/A msg Expected output from ApplyModel was not found. N/A msg 
This likely indicates problems with the inputs to the R module. N/A N/A writetolog msg False True N/A N/A ModuleError self msg N/A N/A N/A N/A os path exists N/A N/A N/A os path join output_dname bin_map.tif N/A N/A outFileName N/A N/A N/A os path join output_dname bin_map.tif N/A output_file2 N/A N/A utils create_file_module outFileName N/A N/A N/A self set_output BinaryMap output_file2 N/A N/A Model N/A Module N/A N/A 
    This module is a required class for other modules and scripts within the
    SAHM package. It is not intended for direct use or incorporation into
    the VisTrails workflow by the user.
     N/A _input_ports N/A N/A mdsFile (gov.usgs.sahm:MergedDataSet:Other) N/A makeBinMap (edu.utah.sci.vistrails.basic:Boolean) N/A defaults optional N/A str N/A True False N/A makeProbabilityMap (edu.utah.sci.vistrails.basic:Boolean) N/A defaults optional N/A str N/A True False N/A makeMESMap (edu.utah.sci.vistrails.basic:Boolean) N/A defaults optional N/A str N/A False False N/A ThresholdOptimizationMethod (edu.utah.sci.vistrails.basic:Integer) N/A defaults optional N/A str N/A 2 False N/A _output_ports N/A N/A modelWorkspace (edu.utah.sci.vistrails.basic:File) N/A BinaryMap (edu.utah.sci.vistrails.basic:File) N/A ProbabilityMap (edu.utah.sci.vistrails.basic:File) N/A AUC_plot (edu.utah.sci.vistrails.basic:File) N/A ResponseCurves (edu.utah.sci.vistrails.basic:File) N/A Text_Output (edu.utah.sci.vistrails.basic:File) compute N/A N/A self N/A N/A N/A color_breaks_csv N/A ModelOutput N/A FIT_BRT_pluggable.r FIT_GLM_pluggable.r FIT_RF_pluggable.r FIT_MARS_pluggable.r brt glm rf mars N/A ModelAbbrev N/A ModelOutput N/A N/A self name N/A output_dname N/A N/A utils mknextdir prefix N/A ModelAbbrev output_ N/A argsDict N/A N/A utils map_ports self N/A self port_map N/A mdsFile N/A N/A N/A self force_get_input mdsFile name N/A args N/A N/A k v N/A N/A argsDict iteritems N/A N/A N/A k c N/A N/A args N/A N/A N/A = join N/A N/A str k N/A N/A " N/A str v " N/A N/A args N/A N/A N/A = join N/A N/A str k N/A str v N/A args N/A N/A N/A  o= " output_dname " N/A args N/A  rc= N/A N/A utils MDSresponseCol mdsFile N/A N/A N/A utils runRScript N/A self name args self N/A input_fname N/A N/A N/A os path join output_dname N/A ModelAbbrev _prob_map.tif N/A output_fname N/A N/A N/A os path join output_dname N/A ModelAbbrev _prob_map.jpeg N/A N/A N/A N/A os path exists input_fname N/A N/A N/A N/A self set_output ProbabilityMap input_fname N/A N/A N/A N/A N/A N/A argsDict has_key mpt N/A N/A argsDict N/A mpt True N/A N/A N/A argsDict has_key mpt N/A N/A msg N/A N/A Expected output from  ModelAbbrev  was not found. N/A msg 
This might indicate problems with the inputs to the R module. N/A msg 
Check the console output for additional R warnings  N/A N/A writetolog msg False True N/A N/A ModuleError self msg N/A N/A N/A N/A N/A argsDict has_key mbt N/A N/A argsDict N/A mbt True N/A N/A N/A argsDict has_key mbt N/A N/A outFileName N/A N/A N/A os path join output_dname N/A ModelAbbrev _bin_map.tif N/A output_file1 N/A N/A utils create_file_module outFileName N/A N/A N/A self set_output BinaryMap output_file1 N/A outFileName N/A N/A N/A os path join output_dname N/A ModelAbbrev _output.txt N/A output_file2 N/A N/A utils create_file_module outFileName N/A N/A N/A self set_output Text_Output output_file2 N/A outFileName N/A N/A N/A os path join output_dname N/A ModelAbbrev _auc_plot.jpg N/A output_file3 N/A N/A utils create_file_module outFileName N/A N/A N/A self set_output AUC_plot output_file3 N/A outFileName N/A N/A N/A os path join output_dname N/A ModelAbbrev _response_curves.pdf N/A output_file5 N/A N/A utils create_file_module outFileName N/A N/A N/A self set_output ResponseCurves output_file5 N/A outFileName N/A N/A N/A os path join output_dname modelWorkspace N/A output_file6 N/A N/A utils create_file_module outFileName N/A N/A N/A self set_output modelWorkspace output_file6 N/A N/A writetolog N/A N/A Finished  ModelAbbrev  builder
 True True N/A N/A GLM N/A Model N/A N/A _input_ports N/A list N/A Model _input_ports N/A N/A N/A _input_ports extend N/A N/A ModelFamily (edu.utah.sci.vistrails.basic:String) N/A defaults optional N/A str N/A binomial True N/A SimplificationMethod (edu.utah.sci.vistrails.basic:String) N/A defaults optional N/A str N/A AIC True __init__ N/A N/A self N/A N/A N/A models_path N/A N/A N/A Model __init__ self N/A N/A self name FIT_GLM_pluggable.r N/A N/A self port_map N/A mdsFile makeProbabilityMap makeBinMap makeMESMap ThresholdOptimizationMethod ModelFamily SimplificationMethod N/A c None True N/A mpt N/A utils R_boolean False N/A mbt N/A utils R_boolean False N/A mes N/A utils R_boolean False N/A om None False N/A mf None False N/A sm None False N/A N/A RandomForest N/A Model N/A N/A _input_ports N/A list N/A Model _input_ports N/A N/A N/A _input_ports extend N/A N/A MTRY (edu.utah.sci.vistrails.basic:Integer) N/A defaults optional N/A str N/A 1 True __init__ N/A N/A self N/A N/A N/A models_path N/A N/A N/A Model __init__ self N/A N/A self name FIT_RF_pluggable.r N/A N/A self port_map N/A mdsFile makeProbabilityMap makeBinMap makeMESMap ThresholdOptimizationMethod MTRY N/A c None True N/A mpt N/A utils R_boolean False N/A mbt N/A utils R_boolean False N/A mes N/A utils R_boolean False N/A om None False N/A mtry None False N/A N/A MARS N/A Model N/A N/A _input_ports N/A list N/A Model _input_ports N/A N/A N/A _input_ports extend N/A N/A MarsDegree (edu.utah.sci.vistrails.basic:Integer) N/A defaults optional N/A str N/A 1 True N/A MarsPenalty (edu.utah.sci.vistrails.basic:Integer) N/A defaults optional N/A str N/A 2 True __init__ N/A N/A self N/A N/A N/A models_path N/A N/A N/A Model __init__ self N/A N/A self name FIT_MARS_pluggable.r N/A N/A self port_map N/A mdsFile makeProbabilityMap makeBinMap makeMESMap ThresholdOptimizationMethod MarsDegree MarsPenalty N/A c None True N/A mpt N/A utils R_boolean False N/A mbt N/A utils R_boolean False N/A mes N/A utils R_boolean False N/A om None False N/A deg None False N/A pen None False N/A N/A BoostedRegressionTree N/A Model N/A N/A _input_ports N/A list N/A Model _input_ports N/A N/A N/A _input_ports extend N/A N/A Seed (edu.utah.sci.vistrails.basic:Integer) True N/A TreeComplexity (edu.utah.sci.vistrails.basic:Integer) True N/A NumberOfTrees (edu.utah.sci.vistrails.basic:Integer) N/A defaults optional N/A str N/A 10000 True N/A BagFraction (edu.utah.sci.vistrails.basic:Float) N/A defaults optional N/A str N/A 0.5 True N/A NumberOfFolds (edu.utah.sci.vistrails.basic:Integer) N/A defaults optional N/A str N/A 3 True N/A Alpha (edu.utah.sci.vistrails.basic:Float) N/A defaults optional N/A str N/A 1 True N/A PrevalenceStratify (edu.utah.sci.vistrails.basic:Boolean) N/A defaults optional N/A str N/A True True N/A ToleranceMethod (edu.utah.sci.vistrails.basic:String) N/A defaults optional N/A str N/A auto True N/A Tolerance (edu.utah.sci.vistrails.basic:Float) N/A defaults optional N/A str N/A 0.001 True __init__ N/A N/A self N/A N/A N/A models_path N/A N/A N/A Model __init__ self N/A N/A self name FIT_BRT_pluggable.r N/A N/A self port_map N/A mdsFile makeProbabilityMap makeBinMap makeMESMap ThresholdOptimizationMethod Seed TreeComplexity NumberOfTrees BagFraction NumberOfFolds Alpha PrevalenceStratify ToleranceMethod Tolerance N/A c None True N/A mpt N/A utils R_boolean False N/A mbt N/A utils R_boolean False N/A mes N/A utils R_boolean False N/A om None False N/A seed None False N/A tc None False N/A nf None False N/A bf None False N/A nf None False N/A alp None False N/A ps None False N/A tolm None False N/A tol None False N/A N/A MDSBuilder N/A Module N/A N/A 
    MDS Builder

    The Merged Data Set (MDS) Builder module is a utility that extracts the values of each predictor
    layer to the point locations included in the field data set. The module produces a .csv file that
    contains the x and y locations of the sample points and a column indicating whether each point
    represents a presence recording, an absence recording, a presence count, or a background point.
    Following these first three columns, each environmental predictor layer is appended as a column
    with row entries representing the value present in the raster layer at each field sample point.
    There are a total of three header rows in the output .csv of the MDSBuilder. The first row contains
    the columns "x," "y," "ResponseBinary" or "ResponseCount," and the names of each of the raster
    predictor files that were passed to the MDS Builder. The second row contains a binary value
    indicating whether the column should be included when the model is finally applied; these values
    are later modified during the Covariate Correlation and Selection process that takes place downstream
    in the workflow. The final header row contains the full path on the file system to each of the raster
    predictor files.

    The MDSBuilder accepts four inputs from the user:

    1. Rasters with PARC Info .csv File: The raster layers listed in this file will have their values
    extracted to the points in the field data .csv file. This parameter should be supplied by connecting
    the output of a PARC module within the workflow to the MDSBuilder module. (In order to properly
    extract the values of each predictor layer to the field data points, all the layers must have matching
    coordinate systems and cell sizes; outputs from the PARC module will have had the prerequisite processing).
    
    2. Background Point Count: This is an optional value that applies only to workflows that employ the
    Maxent modeling package. The dialogue box provides the option of specifying a number of background points
    to be randomly scattered throughout the study area (the extent of the template layer) to capture a more
    complete sample of the range of values present for each predictor layer. These points will be added to
    the field data .csv file with a value of "-999" denoting them as background points.
    
    3. Background Probability Surface: This is an optional parameter that applies only to workflows that
    employ the Maxent modeling package. In some analyses, it may be appropriate to spatially limit background
    points to a particular subset of the study area (e.g., islands within a study area polygon, particular
    regions within a study area polygon, or a region determined by the known bias present in the field data).
    Specifying a background probability surface raster allows a user to control where random points will be
    scattered within the extent of the study area. The raster layer specified by a user should have the same
    projection and extent as the template layer and contain values ranging from 0 to 100. These values represent
    the probability that a randomly generated point will be retained should it fall within a particular cell.
    That is, randomly generated points will not be generated in any part of the probability grid with a value
    of "0" while all points falling in an area with a value of "100" will be retained. A point falling in an
    area with a value of "50" will be kept as a background point 50% of the time.
    
    4. Field Data: The field data input corresponds to a .csv file containing presence/absence points or count
    data recorded across a landscape for the phenomenon being modeled (e.g., plant sightings, evidence of
    animal presence, etc.). This input file must be in a particular format, and in most cases, a user should
    populate this field by connecting a FieldData element to the MDSBuilder in the visual display within VisTrails.
    Please see the documention for the FieldData module for more details.

     N/A _input_ports N/A expand_ports N/A N/A RastersWithPARCInfoCSV (edu.utah.sci.vistrails.basic:File) N/A fieldData (gov.usgs.sahm:FieldData:DataInput) N/A backgroundPointCount (edu.utah.sci.vistrails.basic:Integer) N/A backgroundProbSurf (edu.utah.sci.vistrails.basic:File) N/A _output_ports N/A expand_ports N/A N/A mdsFile (gov.usgs.sahm:MergedDataSet:Other) compute N/A N/A self N/A N/A N/A port_map N/A fieldData backgroundPointCount backgroundProbSurf N/A fieldData None True N/A pointcount None False N/A probsurf None False N/A MDSParams N/A N/A utils map_ports self port_map N/A N/A MDSParams N/A outputMDS N/A N/A utils mknextfile prefix MergedDataset_ suffix .csv N/A inputs_csvs N/A N/A self force_get_input_list RastersWithPARCInfoCSV N/A N/A N/A len inputs_csvs 0 N/A N/A N/A ModuleError self Must supply at least one 'RastersWithPARCInfoCSV'/nThis is the output from the PARC module N/A N/A N/A len inputs_csvs 1 N/A N/A inputs_csv N/A N/A utils mknextfile prefix CombinedPARCFiles_ suffix .csv N/A inputs_names N/A N/A f name N/A f inputs_csvs N/A N/A N/A utils merge_inputs_csvs inputs_names inputs_csv N/A N/A inputs_csv N/A N/A inputs_csvs N/A 0 name N/A N/A MDSParams N/A inputsCSV inputs_csv N/A ourMDSBuilder N/A N/A MDSB MDSBuilder N/A N/A N/A utils PySAHM_instance_params ourMDSBuilder MDSParams N/A N/A writetolog N/A     inputsCSV= N/A ourMDSBuilder inputsCSV False False N/A N/A writetolog N/A     fieldData= N/A ourMDSBuilder fieldData False False N/A N/A writetolog N/A     outputMDS= N/A ourMDSBuilder outputMDS False False N/A N/A N/A N/A N/A ourMDSBuilder run N/A N/A N/A TrappedError N/A e N/A N/A N/A ModuleError self N/A e message N/A N/A N/A N/A N/A utils informative_untrapped_error self MDSBuilder N/A output_file N/A N/A utils create_file_module N/A ourMDSBuilder outputMDS N/A N/A N/A self set_output mdsFile output_file N/A N/A FieldDataAggregateAndWeight N/A Module N/A N/A 
    Documentation to be updated when module finalized.
     N/A _input_ports N/A expand_ports N/A N/A templateLayer (gov.usgs.sahm:TemplateLayer:DataInput) N/A fieldData (gov.usgs.sahm:FieldData:DataInput) N/A aggregateRows basic:Boolean N/A aggregateRowsByYear basic:Boolean N/A _output_ports N/A expand_ports N/A N/A fieldData (gov.usgs.sahm:FieldData:DataInput) compute N/A N/A self N/A N/A N/A N/A writetolog 
Running FieldDataQuery True N/A port_map N/A templateLayer fieldData aggregateRowsByYear addKDE N/A template None True N/A csv None True N/A aggRows None False N/A addKDE None False N/A KDEParams N/A N/A utils map_ports self port_map N/A output_fname N/A N/A utils mknextfile prefix FDQ_ suffix .csv N/A N/A writetolog N/A     output_fname= output_fname True False N/A N/A KDEParams N/A output output_fname N/A output_fname N/A N/A utils mknextfile prefix FDQ_ suffix .csv N/A N/A writetolog N/A     output_fname= output_fname True False N/A ourFDQ N/A N/A FDQ FieldDataQuery N/A N/A N/A utils PySAHM_instance_params ourFDQ KDEParams N/A N/A N/A ourFDQ processCSV N/A output_file N/A N/A utils create_file_module output_fname N/A N/A writetolog Finished running FieldDataQuery True N/A N/A N/A self set_output fieldData output_file N/A N/A PARC N/A Module N/A N/A 
    PARC

    The Projection, Aggregation, Resampling, and Clipping (PARC) module is a powerful
    utility that automates the preparation steps required for using raster layers in
    most geospatial modeling packages. In order to successfully consider multiple
    environmental predictors in raster format, each layer must have coincident cells
    (pixels) of the same size, have the same coordinate system (and projection, if
    applicable), and the same geographic extent. The PARC module ensures that all of
    these conditions are met for the input layers by transforming and or reprojecting
    each raster to match the coordinate system of the template layer. This process
    usually involves aggregation (necessary when an input raster layer must be up-scaled
    to match the template layer-- e.g., generalizing a 10 m input layer to a 100 m output
    layer), and or resampling (necessary for interpolating new cell values when transforming
    the raster layer to the coordinate space or cell size of the template layer). Lastly,
    each raster predictor layer is clipped to match the extent of the template layer.

    The settings used during these processing steps follow a particular set of decision rules
    designed to preserve the integrity of data as much as possible. However, it is important
    for a user to understand how these processing steps may modify the data inputs. For
    additional information about the PARC module, please see the extended help and
    documentation for the SAHM package. 

    The PARC module accepts four kinds of inputs: 

    1. Predictor List: A user should not have to populate this field. This field is populated
    when a selection is made from the pre-loaded .csv file of raster predictor layer inputs
    (specified during the SAHM install) and connected to the PARC module in the visual display. 
    
    2. .csv File List: The .csv file list corresponds to the Predictor List File element and
    allows a user to load a .csv file containing a list of rasters for consideration in the
    modeled analysis. For additional information, please see the documentation for the Predictor
    List File element.
    
    3. Predictor:  The predictor input allows a user to select a single raster predictor layer
    to be considered in the analysis. It is recommended that a user add this input as a separate
    element in the visual display (and then link it to the PARC module) so that the aggregation
    and resampling settings can be established. The PARC module can accept multiple predictor
    elements. For additional information, please see the documentation for the Predictor element.
    
    4. Template Layer: The template layer is a raster data layer with a defined coordinate system,
    a known cell size, and an extent that defines the study area. This raster layer serves as the
    template for all the other inputs in the analysis. All additional raster layers used in the
    analysis will be resampled and reprojected as needed to match the template, snapped to the
    template, and clipped to have an extent that matches the template. Users should ensure that
    any additional layers considered in the analysis have coverage within the extent of the
    template layer. The template layer is a required input for the PARC module.

     N/A _input_ports N/A N/A predictor (gov.usgs.sahm:Predictor:DataInput) N/A PredictorList (gov.usgs.sahm:PredictorList:Other) N/A RastersWithPARCInfoCSV (gov.usgs.sahm:RastersWithPARCInfoCSV:Other) N/A templateLayer (gov.usgs.sahm:TemplateLayer:DataInput) N/A multipleCores (edu.utah.sci.vistrails.basic:Boolean) N/A defaults optional N/A str N/A True True N/A _output_ports N/A N/A RastersWithPARCInfoCSV (edu.utah.sci.vistrails.basic:File) compute N/A N/A self N/A N/A N/A ourPARC N/A N/A parc PARC N/A output_dname N/A N/A utils mknextdir prefix PARC_ N/A N/A configuration verbose N/A N/A N/A ourPARC verbose True N/A N/A ourPARC logger N/A N/A utils getLogger N/A N/A ourPARC out_dir output_dname N/A N/A N/A self has_input multipleCores N/A N/A N/A N/A self get_input multipleCores N/A N/A N/A ourPARC multicores True N/A workingCSV N/A N/A utils mknextfile prefix tmpFilesToPARC_ suffix .csv N/A outputCSV N/A N/A utils mknextfile prefix PARCOutput_ suffix .csv N/A N/A N/A self has_input RastersWithPARCInfoCSV N/A N/A inputCSV N/A N/A N/A self force_get_input RastersWithPARCInfoCSV name N/A N/A N/A shutil copy inputCSV workingCSV N/A f N/A open workingCSV ab N/A csvWriter N/A N/A csv writer f N/A N/A f N/A open workingCSV wb N/A csvWriter N/A N/A csv writer f N/A N/A N/A csvWriter writerow N/A FilePath Categorical Resampling Aggregation N/A N/A N/A self has_input PredictorList N/A N/A predictor_lists N/A N/A self force_get_input_list PredictorList N/A predictor_list predictor_lists N/A N/A predictor predictor_list N/A N/A N/A N/A csvWriter writerow N/A list predictor N/A N/A N/A self has_input predictor N/A N/A predictor_list N/A N/A self force_get_input_list predictor N/A predictor predictor_list N/A N/A N/A N/A csvWriter writerow N/A list predictor N/A N/A N/A f close N/A csvWriter N/A N/A ourPARC inputs_CSV workingCSV N/A N/A ourPARC template N/A N/A N/A self force_get_input templateLayer name N/A N/A writetolog N/A     template layer =  N/A N/A N/A self force_get_input templateLayer name N/A N/A writetolog N/A     output_dname= output_dname False False N/A N/A writetolog N/A     workingCSV= workingCSV False False N/A N/A N/A N/A N/A ourPARC parcFiles N/A N/A N/A TrappedError N/A e N/A N/A N/A writetolog N/A e message N/A N/A ModuleError self N/A e message N/A N/A N/A N/A N/A utils informative_untrapped_error self PARC N/A N/A N/A os remove workingCSV N/A predictorsDir N/A N/A utils create_dir_module output_dname N/A outputCSV N/A N/A N/A os path join output_dname PARC_Files.csv N/A output_file N/A N/A utils create_file_module outputCSV N/A N/A writetolog Finished running PARC True N/A N/A N/A self set_output RastersWithPARCInfoCSV output_file N/A N/A RasterFormatConverter N/A Module N/A N/A 
    Raster Format Converter

    The RasterFormatConverter module allows a user to easily convert .tif raster layers
    into a different raster format for use and display in other software packages. The
    module accepts as an input either a list of rasters in a Merged Dataset File (MDS)
    or the location of a directory containing multiple raster files. All outputs will be
    sent to a folder named "ConvertedRasters" (followed by an underscore and a number
    corresponding to the run sequence of the module) within the user's current VisTrail
    session folder.

    Three parameters can be specified by the user:

    1. Format: The format corresponds to the desired raster output format. The following
    output file formats are supported: Arc/Info ASCII Grid, ESRI BIL, ERDAS Imagine, and JPEG.
    
    To specify the desired output, users should enter the values shown below.
    For an ASCII (.asc) output, enter: "asc"
    For an ESRI BIL output, enter: "bil"
    For an Erdas Imagine (.img) output, enter: "img"
    For a JPEG (.jpg) output, enter: "jpg"
    
    If no value is entered by the user, the module will default to an ASCII (.asc) output
    format.

    2. Input Directory: The input directory allows a user to point to an entire folder as
    an input to the RasterFormatConverter. The contents of the specified folder will be
    checked for raster files and all the raster files contained within the directory will
    be converted to the format specified in the "Format" dialogue box. The module will
    identify and convert files of the following raster types: .bil, .img, .tif, .jpg, and .asc. 

    3. Input Merged Dataset (MDS): The input merged dataset allows a user to specify a .csv
    file created in the VisTrails workflow (containing a list of .tif raster files) as an
    input to the raster converter. All of the files listed in the MDS will be converted to
    the raster format specified in the "Format" dialogue box.

     N/A _input_ports N/A N/A inputMDS (gov.usgs.sahm:MergedDataSet:Other) N/A inputDir (edu.utah.sci.vistrails.basic:Directory) N/A format (edu.utah.sci.vistrails.basic:String) N/A multipleCores (edu.utah.sci.vistrails.basic:Boolean) N/A defaults optional N/A str N/A True True N/A _output_ports N/A N/A outputDir (edu.utah.sci.vistrails.basic:Directory) compute N/A N/A self N/A N/A N/A N/A writetolog 
Running TiffConverter True N/A ourRFC N/A N/A RFC FormatConverter N/A N/A N/A self has_input inputMDS N/A N/A N/A ourRFC MDSFile N/A N/A N/A self force_get_input inputMDS name N/A N/A N/A N/A self has_input inputDir N/A N/A N/A ourRFC inputDir N/A N/A N/A self force_get_input inputDir name N/A N/A N/A self has_input format N/A N/A format N/A N/A self force_get_input format N/A N/A format N/A N/A format asc N/A N/A ourRFC format format N/A N/A N/A self has_input multipleCores N/A N/A N/A N/A self get_input multipleCores N/A N/A N/A ourRFC multicores True N/A N/A ourRFC outputDir N/A N/A utils mknextdir prefix ConvertedRasters_ N/A N/A configuration verbose N/A N/A N/A ourRFC verbose True N/A N/A ourRFC logger N/A N/A utils getLogger N/A N/A writetolog N/A     output directory =  N/A ourRFC outputDir False False N/A N/A N/A N/A N/A ourRFC run N/A N/A N/A TrappedError N/A e N/A N/A N/A ModuleError self N/A e message N/A N/A N/A N/A N/A utils informative_untrapped_error self RasterFormatConverter N/A outputDir N/A N/A utils create_dir_module N/A ourRFC outputDir N/A N/A N/A self set_output outputDir outputDir N/A N/A writetolog 
Finished running TiffConverter True N/A N/A TestTrainingSplit N/A Module N/A N/A 
    Test Training Split

    The TestTrainingSplit module provides the opportunity to establish specific settings
    for how field data will be used in the modeling process. Three parameters can be set
    by the user:

    1. Ratio of Presence/Absence Points:
    This field is populated with a number corresponding to the desired proportion of
    presence and absence points to be used in the analysis. If populated, this entry should
    be a number greater than zero. (A value of '1' will result in an equal number of both
    presence and absence points being used, a value of '2' indicates that twice as many
    presence points will be used, a value of 0.5 indicates that twice as many absence points
    will be used, etc.). All field data points with a value equal to or greater than 1 are
    interpreted as presence points. Although the original field data is unmodified, this
    option will reduce the sample size as the merged dataset containing sample points will
    have points deleted from it to achieve the specified ratio. A warning will be generated
    if more than 50% of either the presence or absence points will be deleted based on the
    ratio specified by the user. Background points are ignored by this module (they are read
    in and written out, but not assigned to either the test or training split).

    When left empty, this field will default to 'null' and the model will use the existing
    presence/absence ratio present in the field data.

    2. Input Merged Data Set (MDS): 
    This is the input data set consisting of locational data for each sample point, the
    values of each predictor variable at those points, and if established, a field denoting
    the weight that will be assigned to each point in modeling. This input is usually provided
    by the upstream steps that precede the Test Training Split module. Any value entered here
    (e.g., specifying another existing MDS on the file system) will override the input
    specified by a model connection in the visual display.

    3. Training Proportion:
    This is the proportion of the sample points that will be used to train the model, relative
    to the total number of points. Entered values should be greater than 0 but less than 1.
    For example, a value of '0.9' will result in 90% of the sample points being used to train
    the model, with 10% of the sample being held out to test the model's performance. Choosing
    an appropriate training proportion can depend on various factors, such as the total number
    of sample points available.

     N/A _input_ports N/A N/A inputMDS (gov.usgs.sahm:MergedDataSet:Other) N/A trainingProportion (edu.utah.sci.vistrails.basic:Float) N/A defaults N/A str N/A 0.7 N/A RatioPresAbs (edu.utah.sci.vistrails.basic:Float) N/A _output_ports N/A N/A outputMDS (gov.usgs.sahm:MergedDataSet:Other) compute N/A N/A self N/A N/A N/A N/A N/A self has_input trainingProportion N/A N/A real input N/A N/A writetolog 
Generating Test Training split  True N/A inputMDS N/A N/A utils dir_path_value N/A N/A self force_get_input inputMDS N/A N/A outputMDS N/A N/A utils mknextfile prefix TestTrainingSplit_ suffix .csv N/A models_path N/A args N/A N/A N/A N/A N/A N/A N/A i= " inputMDS "  o= " outputMDS " N/A args N/A  rc= N/A N/A utils MDSresponseCol inputMDS N/A N/A N/A self has_input trainingProportion N/A N/A N/A N/A trainingProportion N/A float N/A N/A self get_input trainingProportion N/A N/A N/A trainingProportion 0 N/A trainingProportion 1 N/A N/A N/A ModuleError self Train Proportion (trainProp) must be a number between 0 and 1 excluding 0 N/A args N/A  p= N/A str trainingProportion N/A N/A N/A N/A N/A ModuleError self Train Proportion (trainProp) must be a number between 0 and 1 excluding 0 N/A N/A N/A self has_input RatioPresAbs N/A N/A N/A N/A RatioPresAbs N/A float N/A N/A self get_input RatioPresAbs N/A N/A RatioPresAbs 0 N/A N/A N/A ModuleError self The ratio of presence to absence (RatioPresAbs) must be a number greater than 0 N/A args N/A  m= N/A str trainingProportion N/A N/A N/A N/A N/A ModuleError self The ratio of presence to absence (RatioPresAbs) must be a number greater than 0 N/A N/A N/A utils runRScript TestTrainSplit.r args self N/A output N/A N/A N/A os path join outputMDS N/A N/A N/A N/A os path exists output N/A N/A output_file N/A N/A utils create_file_module output N/A N/A writetolog Finished Test Training split  True N/A N/A msg Problem encountered generating Test Training split.  Expected output file not found. N/A N/A writetolog msg False N/A N/A ModuleError self msg N/A N/A N/A self set_output outputMDS output_file N/A N/A CovariateCorrelationAndSelection N/A Module N/A N/A 
    Covariate Correlation And Selection

    The CovariateCorrelationAndSelection view provides a breakpoint in the modeling workflow
    for the user to assess how well each variable explains the distribution of the sampled
    data points and to remove any variables that may exhibit high correlation with others. 

    The display shows the 10 most correlated variables of those selected. These variables
    are displayed on the diagonal and their respective graphical display and correlation with
    other variables can be found by locating the row/column intersection between each (above
    and below the diagonal). The column heading over each variable displays the number of
    other variables with which the environmental predictor is correlated. The user defined
    "Threshold" option allows a user to specify the degree of correlation required between
    two variables for them to be counted in this tally.

    A user is provided with the opportunity to select a new set of the environmental predictor
    variables and "Update" the Covariate Correlation screen to investigate the relationships
    among the new variables selected. The options are provided to include or exclude the
    presence/count points, the absence points (when applicable), and the background points in
    this correlation test. Variables with a high degree of correlation with other variables
    should generally be unchecked in their respective radio buttons, and will be excluded from
    subsequent analysis steps in the model workflow.

    Multiple iterations can be run at this screen, allowing the user to investigate the
    relationships among the environmental predictor variables and choose the most appropriate
    set to be used in the subsequent modeling. When the desired set of variables has been chosen,
    the "OK" button is selected and processing will resume in the VisTrails workflow.

     N/A kwargs N/A N/A N/A kwargs N/A defaults N/A str N/A initial N/A _input_ports N/A N/A inputMDS (gov.usgs.sahm:MergedDataSet:Other) N/A selectionName (edu.utah.sci.vistrails.basic:String) kwargs N/A ShowGUI (edu.utah.sci.vistrails.basic:Boolean) N/A _output_ports N/A N/A outputMDS (gov.usgs.sahm:MergedDataSet:Other) compute N/A N/A self N/A N/A N/A N/A writetolog 
Opening Select Predictors Layers widget True N/A inputMDS N/A N/A utils dir_path_value N/A N/A self force_get_input inputMDS N/A selectionName N/A N/A self force_get_input selectionName initial N/A session_dir N/A outputMDS N/A N/A N/A os path join session_dir N/A N/A CovariateCorrelationOutputMDS_ selectionName .csv N/A displayJPEG N/A N/A N/A os path join session_dir CovariateCorrelationDisplay.jpg N/A N/A writetolog N/A     inputMDS =  inputMDS False False N/A N/A writetolog N/A     displayJPEG =  displayJPEG False False N/A N/A writetolog N/A     outputMDS =  outputMDS False False N/A N/A N/A N/A os path exists outputMDS N/A N/A N/A N/A utils applyMDS_selection outputMDS inputMDS N/A N/A N/A os remove outputMDS N/A N/A N/A self callDisplayMDS inputMDS outputMDS displayJPEG N/A output_file N/A N/A utils create_file_module outputMDS N/A N/A writetolog Finished Select Predictors Layers widget True N/A N/A N/A self set_output outputMDS output_file N/A callDisplayMDS N/A N/A self inputMDS outputMDS displayJPEG N/A N/A N/A dialog N/A SelectListDialog inputMDS outputMDS displayJPEG N/A configuration r_path N/A retVal N/A N/A dialog exec_ N/A N/A retVal 1 N/A N/A N/A ModuleError self Cancel or Close selected (not OK) workflow halted. N/A N/A ProjectionLayers N/A Module N/A N/A 
    Projection Layers

    Note: as of June 2011, this module offers some functionality that is only available
    to users running the SAHM package within the USGS Fort Collins Science Center (FORT).

    The ProjectionLayers module provides the option to prepare a separate set of predictor
    layers so that the results of a model developed from one set of environmental predictors
    can be projected onto a new modeled space. This second set of environmental predictors
    (corresponding to the "projection target") most often contains the same environmental
    predictors but represents data captured at a different temporal or spatial location. For
    example, a user could generate a model predicting habitat suitability using recorded
    presence points and certain environmental predictors such as elevation, landcover, and
    proximity to water in one geographic location. Based on the training from this information,
    the modeled results could be generated for (or "projected to") a new location based on the
    range of values seen in elevation, landcover, and proximity to water in the second geographic
    area. Similarly, modeling predicted results through time is also possible. A model trained
    using field data and a set of predictor layers representative of one time period could be
    projected onto the same geographical area using a new set of predictor layers corresponding
    to the same predictors but representing data from a different time period (e.g., different
    climate data). 

    The output of this module is subsequently used as the projection target in the ApplyModel module.

    (As part of the process of preparing the layers for modeling, the ProjectionLayers module runs
    the PARC module internally on the inputs. Outputs from the ProjectionLayers module will possess
    matching coordinate systems, cell sizes, and extents and do not need to be run through PARC
    before being used downstream in the workflow.)

    Six parameters can be set by the user:

    1. Directory Crosswalk CSV: This is a .csv file containing two columns designating
    the layers that should be swapped out in the projected model. The first column
    contains a list of the full paths to the predictor layers used to develop the original
    model that will be replaced in the projection process. The second column contains the
    full paths to the new predictor layers that will substitute the respective layers used
    in the original model. Each original layer in the first column should be paired with
    its replacement in the second column (e.g., Column 1 = C:\ModelLayers\Precipitation1980.tif,
    Column 2 = C:\ModelLayers\Precipitation2000.tif). In the case of any file used to develop
    the first model that is not expressly listed in the Directory Crosswalk CSV with a
    replacement, the original file will be used in the new model projection. The module
    anticipates a header row in this .csv file (thus, the first row of data will be ignored).
    
    2. File List CSV: This is a .csv file containing the list of predictor files used to
    develop the first model. Effectively, this file will be updated based on the information
    provided in the directory crosswalk .csv and used as the input to the training process
    for the projected model. The output of the PARC module from the first model iteration
    should be used as the input to this parameter.
    
    3. Model (available only to users at the FORT): This parameter allows VisTrail users
    running the SAHM package on site at the USGS Science Center in Fort Collins (FORT) to
    specify one of three models to use for the projected model run ("CCCMA," "CSIRO,"
    or "hadcm3").
    
    4. Scenario (available only to users at the FORT): This parameter allows VisTrail
    users running the SAHM package on site at the USGS Science Center in Fort Collins 
    FORT) to specify one of two scenarios for the projected model run ("A2a" or "B2b"). 
    
    5. Template: This parameter allows a user to specify the new template layer to be used
    in the projected model run. The template layer is a raster data layer with a defined
    coordinate system, a known cell size, and an extent that defines the (new) study area.
    This raster layer serves as the template for all the other inputs in the analysis. All
    additional raster layers used in the analysis will be resampled and reprojected as
    needed to match the template, snapped to the template, and clipped to have an extent
    that matches the template. Users should ensure that all the layers used for the projected
    analysis have coverage within the extent of the template layer.
    
    6. Year (available only to users at the FORT): This parameter allows VisTrail users
    running the SAHM package on site at the USGS Science Center in Fort Collins (FORT)
    to specify one of three years to use for the projected model run ("2020," "2050," or "2080").

     N/A _input_ports N/A N/A RastersWithPARCInfoCSV (gov.usgs.sahm:RastersWithPARCInfoCSV:Other) N/A templateLayer (gov.usgs.sahm:TemplateLayer:DataInput) N/A model (edu.utah.sci.vistrails.basic:String) N/A scenario (edu.utah.sci.vistrails.basic:String) N/A year (edu.utah.sci.vistrails.basic:String) N/A directoryCrosswalkCSV (edu.utah.sci.vistrails.basic:File) N/A _output_ports N/A N/A MDS (gov.usgs.sahm:MergedDataSet:Other) compute N/A N/A self N/A N/A N/A models N/A CCCMA CSIRO hadcm3 N/A scenarioss N/A A2a B2b N/A years N/A 2020 2050 2080 N/A N/A writetolog 
Running make Projection Layers True N/A inputCSV N/A N/A N/A self force_get_input RastersWithPARCInfoCSV name N/A N/A N/A self has_input templateLayer N/A N/A template N/A N/A N/A self force_get_input templateLayer name N/A N/A template N/A fromto N/A N/A climargs N/A N/A input N/A model scenario year N/A N/A N/A N/A self has_input input N/A N/A N/A climargs N/A input N/A N/A self force_get_input input N/A N/A N/A climargs N/A N/A N/A N/A climargs keys N/A model scenario year N/A N/A N/A ModuleError self All of model, scenario, and year must be supplied if any are used. N/A N/A N/A N/A climargs N/A N/A N/A climargs keys N/A model scenario year N/A N/A N/A N/A fromto append N/A K:\GIS_LIBRARY\Climate\WorldClim\BioclimaticVariables\bio_30s_esri\bio N/A N/A N/A os path join I:\WorldClim_Future_Climate\RenamedBILs N/A climargs N/A model N/A climargs N/A scenario N/A climargs N/A year N/A N/A N/A self has_input directoryCrosswalkCSV N/A N/A crosswalkCSV N/A N/A csv reader N/A open N/A N/A self force_get_input directoryCrosswalkCSV r N/A header crosswalkCSV N/A row crosswalkCSV N/A N/A N/A N/A fromto append N/A row N/A 0 N/A row N/A 1 N/A crosswalkCSV N/A inCSV N/A N/A csv reader N/A open inputCSV r N/A N/A N/A inCSV next N/A workingCSV N/A N/A utils mknextfile prefix tmpFilesToPARC_ suffix .csv N/A tmpCSV N/A N/A csv writer N/A open workingCSV wb N/A N/A N/A tmpCSV writerow N/A FilePath Categorical Resampling Aggregation N/A outHeader1 N/A x y response N/A outHeader2 N/A N/A outHeader3 N/A N/A output_dname N/A N/A utils mknextdir prefix ProjectionLayers_ N/A row inCSV N/A N/A N/A template N/A N/A template N/A row N/A 0 N/A fileShortName N/A N/A utils getShortName N/A row N/A 0 N/A N/A N/A row N/A 1 1 N/A N/A N/A N/A outHeader1 append N/A fileShortName _categorical N/A N/A N/A N/A outHeader1 append fileShortName N/A N/A N/A outHeader2 append 1 N/A N/A N/A outHeader3 append N/A N/A N/A os path join output_dname N/A fileShortName .tif N/A origFile N/A row N/A 4 N/A newOrigFile origFile N/A lookup fromto N/A N/A N/A N/A lookup N/A 0 origFile N/A N/A newOrigFile N/A N/A origFile replace N/A lookup N/A 0 N/A lookup N/A 1 N/A N/A N/A tmpCSV writerow N/A N/A newOrigFile N/A row N/A 1 4 N/A tmpCSV N/A ourPARC N/A N/A parc PARC N/A N/A configuration verbose N/A N/A N/A ourPARC verbose True N/A N/A writetolog N/A     output_dname= output_dname False False N/A N/A ourPARC outDir output_dname N/A N/A ourPARC inputsCSV workingCSV N/A N/A ourPARC template template N/A N/A N/A N/A N/A ourPARC parcFiles N/A N/A N/A TrappedError N/A e N/A N/A N/A ModuleError self N/A e message N/A N/A N/A N/A N/A utils informative_untrapped_error self PARC N/A outputMDS N/A N/A N/A os path join output_dname ProjectionLayersMDS.csv N/A outCSV N/A N/A csv writer N/A open outputMDS wb N/A N/A N/A outCSV writerow outHeader1 N/A N/A N/A outCSV writerow outHeader2 N/A N/A N/A outCSV writerow outHeader3 N/A output_file N/A N/A utils create_file_module outputMDS N/A N/A N/A self set_output MDS output_file N/A N/A writetolog Finished Select Projection Layers widget True N/A N/A MAXENT N/A Module N/A N/A _output_ports N/A N/A lambdas (edu.utah.sci.vistrails.basic:File) N/A report (edu.utah.sci.vistrails.basic:File) N/A roc (edu.utah.sci.vistrails.basic:File) compute N/A N/A self N/A N/A N/A maxent_path N/A ourMaxent N/A N/A MaxentRunner MAXENTRunner N/A N/A ourMaxent outputDir N/A N/A utils mknextdir prefix maxentFiles_ N/A N/A ourMaxent inputMDS N/A N/A N/A self force_get_input inputMDS name N/A N/A ourMaxent maxentpath maxent_path N/A MaxentArgsCSV N/A N/A utils mknextfile prefix MaxentArgs suffix .csv N/A argWriter N/A N/A csv writer N/A open MaxentArgsCSV wb N/A N/A N/A argWriter writerow N/A parameter value N/A port N/A self _input_ports N/A N/A N/A N/A N/A port N/A 0 inputMDS N/A N/A port N/A 0 projectionlayers N/A N/A N/A N/A self has_input N/A port N/A 0 N/A N/A port_val N/A N/A self get_input N/A port N/A 0 N/A N/A N/A port N/A 1 (edu.utah.sci.vistrails.basic:Boolean) N/A N/A port_val N/A N/A N/A str port_val lower N/A N/A N/A N/A N/A port N/A 1 (edu.utah.sci.vistrails.basic:Path) N/A N/A port N/A 1 (edu.utah.sci.vistrails.basic:File) N/A N/A port_val N/A port_val name N/A N/A N/A argWriter writerow N/A N/A port N/A 0 port_val N/A N/A kwargs N/A port N/A 2 N/A N/A N/A N/A N/A port N/A 1 (edu.utah.sci.vistrails.basic:Boolean) N/A N/A default N/A N/A N/A N/A kwargs N/A defaults N/A 2 -2 lower N/A N/A default N/A N/A kwargs N/A defaults N/A 2 -2 N/A N/A N/A argWriter writerow N/A N/A port N/A 0 default N/A N/A N/A KeyError N/A N/A N/A N/A N/A self has_input projectionlayers N/A N/A value N/A N/A self force_get_input_list projectionlayers N/A projlayers N/A N/A , join N/A N/A path name N/A path value N/A N/A N/A argWriter writerow N/A projectionlayers projlayers N/A argWriter N/A N/A ourMaxent argsCSV MaxentArgsCSV N/A N/A ourMaxent logger N/A N/A utils getLogger N/A N/A N/A N/A N/A ourMaxent run N/A N/A N/A TrappedError N/A e N/A N/A N/A ModuleError self N/A e message N/A N/A N/A N/A N/A utils informative_untrapped_error self Maxent N/A lambdasfile N/A N/A N/A os path join N/A ourMaxent outputDir N/A N/A N/A ourMaxent args N/A species_name .lambdas N/A output_file N/A N/A utils create_file_module lambdasfile N/A N/A N/A self set_output lambdas output_file N/A rocfile N/A N/A N/A os path join N/A ourMaxent outputDir plots N/A N/A N/A ourMaxent args N/A species_name _roc.png N/A output_file N/A N/A utils create_file_module rocfile N/A N/A N/A self set_output roc output_file N/A htmlfile N/A N/A N/A os path join N/A ourMaxent outputDir N/A N/A N/A ourMaxent args N/A species_name .html N/A htmlfile N/A output_file N/A N/A utils create_file_module htmlfile N/A N/A N/A self set_output report output_file N/A N/A writetolog Finished Maxent widget True N/A N/A load_max_ent_params N/A N/A N/A N/A N/A maxent_fname N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ maxent.csv N/A csv_reader N/A N/A csv reader N/A open maxent_fname rU N/A N/A N/A csv_reader next N/A input_ports N/A N/A N/A N/A input_ports append N/A inputMDS (gov.usgs.sahm:MergedDataSet:Other) N/A docs N/A N/A basic_pkg edu.utah.sci.vistrails.basic N/A p_type_map N/A file/directory double Path Float N/A row csv_reader N/A N/A N/A name flag p_type default doc notes row N/A name N/A N/A name strip N/A p_type N/A N/A p_type strip N/A N/A p_type p_type_map N/A N/A p_type N/A p_type_map N/A N/A str p_type N/A N/A p_type N/A N/A N/A str p_type capitalize N/A kwargs N/A N/A default N/A N/A default strip N/A default N/A N/A N/A p_type Boolean N/A N/A default N/A N/A default capitalize N/A N/A kwargs N/A defaults N/A str N/A default N/A N/A p_type Boolean N/A N/A N/A kwargs N/A optional True N/A N/A N/A input_ports append N/A name N/A N/A N/A N/A ( basic_pkg : p_type ) kwargs N/A N/A docs N/A name doc N/A N/A MAXENT _input_ports input_ports N/A N/A MAXENT _port_docs docs provide_input_port_documentation N/A N/A cls port_name N/A N/A N/A N/A N/A cls _port_docs N/A port_name N/A N/A N/A MAXENT provide_input_port_documentation N/A classmethod provide_input_port_documentation N/A initialize N/A N/A N/A N/A N/A maxent_path color_breaks_csv N/A session_dir N/A N/A utils config configuration N/A r_path N/A N/A N/A os path abspath N/A configuration r_path N/A maxent_path N/A N/A N/A os path abspath N/A configuration maxent_path N/A qgis.core N/A qgis.gui N/A N/A N/A globals N/A qgis qgis N/A N/A setQGIS qgis N/A qgis_prefix N/A N/A N/A os path join N/A configuration qgis_path qgis1.7.0 N/A N/A N/A N/A N/A qgis core QgsApplication setPrefixPath qgis_prefix True N/A N/A N/A N/A N/A qgis core QgsApplication initQgis N/A session_dir N/A N/A utils createrootdir N/A configuration output_dir N/A N/A N/A utils createLogger session_dir N/A configuration output_dir N/A color_breaks_csv N/A N/A N/A os path abspath N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ ColorBreaks.csv N/A N/A load_max_ent_params N/A layers_csv_fname N/A N/A writetolog N/A * 79 N/A N/A writetolog Initializing: True True N/A N/A writetolog   Locations of dependencies N/A N/A writetolog N/A    Layers CSV =  layers_csv_fname N/A N/A writetolog N/A    R path =  r_path N/A N/A writetolog N/A    GDAL folder =  N/A N/A N/A os path abspath N/A configuration gdal_path N/A N/A writetolog         Must contain subfolders proj, gdal-data, GDAL N/A N/A writetolog N/A    Maxent folder =  maxent_path N/A N/A writetolog N/A    QGIS folder =  N/A N/A N/A os path abspath N/A configuration qgis_path N/A N/A writetolog         Must contain subfolders qgis1.7.0, OSGeo4W N/A N/A writetolog N/A N/A writetolog N/A * 79 N/A N/A writetolog N/A * 79 N/A N/A writetolog N/A  output directory:    session_dir N/A N/A writetolog N/A * 79 N/A N/A writetolog N/A * 79 N/A finalize N/A N/A N/A N/A N/A N/A generate_namespaces N/A N/A modules N/A N/A N/A module_list N/A N/A N/A namespace m_list N/A N/A modules iteritems N/A N/A module m_list N/A N/A m_dict N/A namespace namespace N/A N/A N/A type module tuple N/A N/A N/A N/A m_dict update N/A module N/A 1 N/A N/A N/A module_list append N/A N/A module N/A 0 m_dict N/A N/A N/A N/A module_list append N/A module m_dict N/A module_list N/A build_available_trees N/A N/A N/A N/A N/A trees N/A N/A layers_csv_fname N/A layers_csv_fname N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ layers.csv N/A csv_reader N/A N/A csv reader N/A open layers_csv_fname rU N/A N/A N/A csv_reader next N/A first_file N/A N/A N/A csv_reader next N/A 0 N/A N/A N/A N/A N/A os path exists first_file N/A N/A N/A N/A N/A N/A N/A ! 30  WARNING  N/A ! 30 3 N/A The first grid in your layers CSV could not be found. N/A Defaulting to the example data csv. N/A N/A N/A fix/set paths in file  layers_csv_fname  to enable this functionality. N/A See documentation for more information on setting up the layers.csv
 N/A N/A N/A N/A N/A N/A ! 30  WARNING  N/A ! 30 3 N/A layers_csv_fname N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ layers.exampledata.csv N/A csv_reader N/A N/A csv reader N/A open layers_csv_fname rU N/A N/A N/A csv_reader next N/A row csv_reader N/A N/A N/A N/A row N/A 2 trees N/A N/A N/A trees N/A N/A row N/A 2 N/A N/A available_dict N/A trees N/A N/A row N/A 2 N/A N/A N/A row N/A 3 available_dict N/A N/A N/A available_dict N/A N/A row N/A 3 N/A N/A N/A N/A N/A available_dict N/A N/A row N/A 3 append N/A N/A row N/A 0 N/A row N/A 1 N/A row N/A 4 N/A trees N/A build_predictor_modules N/A N/A N/A N/A N/A available_trees N/A build_available_trees N/A modules N/A N/A N/A name tree N/A N/A available_trees iteritems N/A N/A name_arr N/A N/A N/A N/A name strip split N/A class_base N/A N/A join N/A N/A N/A n capitalize N/A n name_arr N/A widget_class N/A get_predictor_widget class_base tree N/A config_class N/A get_predictor_config class_base tree N/A class_name N/A class_base Predictors get_widget_method N/A N/A w_class N/A N/A get_widget_class N/A N/A N/A N/A N/A w_class N/A staticmethod N/A get_widget_class N/A N/A module N/A type class_name N/A PredictorList N/A get_widget_class _input_ports N/A get_widget_method widget_class N/A N/A value N/A (gov.usgs.sahm:%s:DataInput) class_name True N/A N/A N/A modules append N/A module N/A configureWidgetType config_class N/A module modules N/A N/A N/A N/A N/A N/A module N/A 0 _output_ports append N/A value_as_string (edu.utah.sci.vistrails.basic:String) True N/A modules N/A N/A _modules N/A generate_namespaces N/A DataInput Tools Models Other Output N/A N/A Predictor PredictorListFile FieldData TemplateLayer N/A build_predictor_modules N/A FieldDataAggregateAndWeight MDSBuilder PARC RasterFormatConverter ProjectionLayers TestTrainingSplit CovariateCorrelationAndSelection ApplyModel N/A GLM RandomForest MARS MAXENT BoostedRegressionTree N/A N/A Model N/A abstract True N/A ResampleMethod N/A abstract True N/A AggregationMethod N/A abstract True N/A PredictorList N/A abstract True N/A MergedDataSet N/A abstract True N/A RastersWithPARCInfoCSV N/A abstract True N/A SAHMModelOutputViewerCell SAHMSpatialOutputViewerCell