Module ImportFrom alias alias alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Str Num Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr If BoolOpOr CompareNotEq AttributeLoad NameLoad attr Num CompareLt SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Raise Call NameLoad Str If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If BoolOpOr CompareLt BinOpAdd BinOpFloorDiv Call NameLoad NameLoad Num NameLoad Num CompareGt BinOpAdd BinOpFloorDiv Call NameLoad NameLoad Num NameLoad Call NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Str Num Num body Expr Str Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore UnaryOpUSub NameLoad If UnaryOpNot BinOpBitAnd Call NameLoad NameLoad Num body AugAssignSub NameStore Num Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad Str Num Num body Expr Str If CompareNotIn NameLoad Call NameLoad Num body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpAdd BinOpMult NameLoad NameLoad Num Assign NameStore BinOpMult ListLoad Num BinOpAdd BinOpMult Num NameLoad Num Assign SubscriptStore NameLoad Index NameLoad Num Assign NameStore Num Assign NameStore BinOpMult NameLoad NameLoad For NameStore Call NameLoad Num BinOpAdd NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv BinOpMult Num Call NameLoad BinOpMult NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index BinOpAdd NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index BinOpSub NameLoad NameLoad NameLoad AugAssignAdd NameStore BinOpMult Num NameLoad For NameStore Call NameLoad BinOpAdd BinOpMult Num NameLoad Num body AugAssignDiv SubscriptStore NameLoad Index NameLoad NameLoad If CompareEq NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad Num For NameStore Call NameLoad Num BinOpAdd NameLoad Num body Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpMult BinOpDiv UnaryOpUSub NameLoad NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad NameLoad Assign SubscriptStore NameLoad Index BinOpAdd NameLoad NameLoad UnaryOpUSub NameLoad Assign SubscriptStore NameLoad Index BinOpSub NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Num body AugAssignMult SubscriptStore NameLoad Index NameLoad BinOpDiv Num NameLoad For NameStore Call NameLoad Num BinOpAdd NameLoad Num body Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpDiv BinOpMult BinOpSub BinOpDiv BinOpMult NameLoad NameLoad NameLoad Num SubscriptLoad NameLoad Index BinOpAdd NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index BinOpAdd NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index BinOpSub NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad Num Assign NameStore BinOpMult NameLoad NameLoad For NameStore Call NameLoad Num BinOpAdd NameLoad Num body Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpDiv BinOpMult BinOpMult BinOpSub Num BinOpDiv BinOpMult NameLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index BinOpAdd NameLoad NameLoad UnaryOpUSub NameLoad Assign SubscriptStore NameLoad Index BinOpSub NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Str Num Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad Call NameLoad NameLoad attr Call NameLoad Call NameLoad Num body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListComp TupleLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad CompareGt SubscriptLoad NameLoad Index NameLoad Num If CompareGt Call NameLoad NameLoad Num body For TupleStore NameStore NameStore NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore NameLoad orelse Assign SubscriptStore NameLoad Ellipsis SubscriptLoad NameLoad Ellipsis Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Str Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad ListLoad Num Num Num NameLoad NameLoad NameLoad NameLoad Num Assign NameStore ListComp NameLoad comprehension NameStore Call NameLoad AttributeLoad NameLoad attr CompareNotEq NameLoad NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad ListLoad Num Num Num NameLoad NameLoad NameLoad NameLoad Num Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Str Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad ListLoad Num Num Num NameLoad NameLoad NameLoad NameLoad Num Assign NameStore ListComp NameLoad comprehension NameStore Call NameLoad AttributeLoad NameLoad attr CompareNotEq NameLoad NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad ListLoad Num Num Num NameLoad NameLoad NameLoad NameLoad Num Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Num TupleLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Num NameLoad NameLoad NameLoad NameLoad NameLoad For NameStore Call NameLoad Num Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad AugAssignAdd NameStore NameLoad orelse Assign SubscriptStore NameLoad Ellipsis SubscriptLoad NameLoad Ellipsis Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str Num body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Return Call NameLoad NameLoad ListLoad Num Num Num NameLoad NameLoad NameLoad NameLoad Num decorator_list Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Num kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults kwarg body Assign NameStore BinOpMult ListLoad Num AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Num Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword TupleLoad NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Num TupleLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Num NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad For NameStore Call NameLoad Num Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AugAssignAdd NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str orelse Assign SubscriptStore NameLoad Ellipsis SubscriptLoad NameLoad Ellipsis Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Num kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults kwarg body Assign NameStore BinOpMult ListLoad Num AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Num Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword TupleLoad NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareGt NameLoad Num If CompareNotEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str If NameLoad body Assign NameStore SubscriptLoad NameLoad Index Call NameLoad BinOpMult ListLoad Call NameLoad NameLoad NameLoad Num AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad UnaryOpUSub SubscriptLoad NameLoad Index NameLoad If UnaryOpNot BinOpBitAnd SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Num body AugAssignSub SubscriptStore NameLoad Index NameLoad Num For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body If BoolOpOr CompareLt BinOpAdd BinOpFloorDiv NameLoad Num NameLoad Num CompareGt BinOpAdd BinOpFloorDiv NameLoad Num NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Num Num body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Num Num body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Str Num Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If CompareLt NameLoad Num body Raise Call NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpOr CompareLt BinOpAdd BinOpFloorDiv NameLoad Num NameLoad Num CompareGtE BinOpAdd BinOpFloorDiv NameLoad Num NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Str Num Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListComp TupleLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad CompareGt SubscriptLoad NameLoad Index NameLoad Num If CompareGt Call NameLoad NameLoad Num body For TupleStore NameStore NameStore NameStore NameLoad body Expr Call NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore NameLoad orelse Assign SubscriptStore NameLoad Ellipsis SubscriptLoad NameLoad Ellipsis Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Str Num Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If CompareLt NameLoad Num body Raise Call NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpOr CompareLt BinOpAdd BinOpFloorDiv NameLoad Num NameLoad Num CompareGtE BinOpAdd BinOpFloorDiv NameLoad Num NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Str Num Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If CompareLt NameLoad Num body Raise Call NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpOr CompareLt BinOpAdd BinOpFloorDiv NameLoad Num NameLoad Num CompareGtE BinOpAdd BinOpFloorDiv NameLoad Num NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body If CompareIs NameLoad NameLoad body If CompareIs NameLoad NameLoad body If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword Num body Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad orelse Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListComp TupleLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad CompareGt SubscriptLoad NameLoad Index NameLoad Num If NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad If CompareGt Call NameLoad NameLoad Num body For TupleStore NameStore NameStore NameStore NameLoad body Expr Call NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore NameLoad orelse Assign SubscriptStore NameLoad Ellipsis SubscriptLoad NameLoad Ellipsis orelse Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareGt NameLoad Num If CompareNotEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body If BoolOpOr CompareLt BinOpAdd BinOpFloorDiv NameLoad Num NameLoad Num CompareGtE BinOpAdd BinOpFloorDiv NameLoad Num NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body If CompareNotEq Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str Num Num body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str Num Num body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str Num Num Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareGt NameLoad Num If CompareNotEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body If BoolOpOr CompareLt BinOpAdd BinOpFloorDiv NameLoad Num NameLoad Num CompareGtE BinOpAdd BinOpFloorDiv NameLoad Num NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Num Num attr If CompareEq NameLoad Str body Assign NameStore BinOpFloorDiv NameLoad Num orelse If CompareEq NameLoad Str body Assign NameStore NameLoad If CompareLt NameLoad Num body AugAssignAdd NameStore Num If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad Num body Raise Call NameLoad Str If CompareEq NameLoad Num body Assign NameStore BinOpSub NameLoad Num orelse Assign NameStore Call NameLoad BinOpDiv BinOpMult Call NameLoad NameLoad NameLoad Num If CompareLt NameLoad Num body AugAssignAdd NameStore NameLoad If BoolOpOr CompareLt NameLoad Num CompareGtE NameLoad NameLoad body Raise Call NameLoad Str If CompareEq NameLoad Num body Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad BinOpSub NameLoad Num body Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str Num Num body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str Num Num body Expr Str Return Call NameLoad NameLoad Num NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str Num Num body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Str Num Num TupleLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareLt NameLoad Num body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If BoolOpOr CompareLt BinOpAdd BinOpFloorDiv NameLoad Num NameLoad Num CompareGtE BinOpAdd BinOpFloorDiv NameLoad Num NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str Num Num TupleLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareGt NameLoad Num If CompareNotEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body If BoolOpOr CompareLt BinOpAdd BinOpFloorDiv NameLoad Num NameLoad Num CompareGtE BinOpAdd BinOpFloorDiv NameLoad Num NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad
N/A __future__ division print_function absolute_import N/A math N/A numpy N/A _ni_support N/A _nd_image scipy.misc doccer scipy._lib._version NumpyVersion N/A __all__ N/A correlate1d convolve1d gaussian_filter1d gaussian_filter prewitt sobel generic_laplace laplace gaussian_laplace generic_gradient_magnitude gaussian_gradient_magnitude correlate convolve uniform_filter1d uniform_filter minimum_filter1d maximum_filter1d minimum_filter maximum_filter rank_filter median_filter percentile_filter generic_filter1d generic_filter N/A _input_doc input : array_like
    Input array to filter. N/A _axis_doc axis : int, optional
    The axis of `input` along which to calculate. Default is -1. N/A _output_doc output : array, optional
    The `output` parameter passes an array in which to store the
    filter output. N/A _size_foot_doc size : scalar or tuple, optional
    See footprint, below
footprint : array, optional
    Either `size` or `footprint` must be defined.  `size` gives
    the shape that is taken from the input array, at every element
    position, to define the input to the filter function.
    `footprint` is a boolean array that specifies (implicitly) a
    shape, but also which of the elements within this shape will get
    passed to the filter function.  Thus ``size=(n,m)`` is equivalent
    to ``footprint=np.ones((n,m))``.  We adjust `size` to the number
    of dimensions of the input array, so that, if the input array is
    shape (10,10,10), and `size` is 2, then the actual size used is
    (2,2,2).
 N/A _mode_doc mode : {'reflect', 'constant', 'nearest', 'mirror', 'wrap'}, optional
    The `mode` parameter determines how the array borders are
    handled, where `cval` is the value when mode is equal to
    'constant'. Default is 'reflect' N/A _cval_doc cval : scalar, optional
    Value to fill past edges of input if `mode` is 'constant'. Default
    is 0.0 N/A _origin_doc origin : scalar, optional
    The `origin` parameter controls the placement of the filter.
    Default 0.0. N/A _extra_arguments_doc extra_arguments : sequence, optional
    Sequence of extra positional arguments to pass to passed function N/A _extra_keywords_doc extra_keywords : dict, optional
    dict of extra keyword arguments to pass to passed function N/A docdict N/A input axis output size_foot mode cval origin extra_arguments extra_keywords _input_doc _axis_doc _output_doc _size_foot_doc _mode_doc _cval_doc _origin_doc _extra_arguments_doc _extra_keywords_doc N/A docfiller N/A N/A doccer filldoc docdict correlate1d N/A N/A input weights axis output mode cval origin N/A -1 None reflect 0.0 0 N/A N/A Calculate a one-dimensional correlation along the given axis.

    The lines of the array along the given axis are correlated with the
    given weights.

    Parameters
    ----------
    %(input)s
    weights : array
        One-dimensional sequence of numbers.
    %(axis)s
    %(output)s
    %(mode)s
    %(cval)s
    %(origin)s
     N/A input N/A N/A numpy asarray input N/A N/A N/A numpy iscomplexobj input N/A N/A N/A TypeError Complex type not supported N/A N/A output return_value N/A N/A _ni_support _get_output output input N/A weights N/A N/A numpy asarray weights dtype N/A numpy float64 N/A N/A N/A N/A weights ndim 1 N/A N/A N/A weights shape N/A 0 1 N/A N/A N/A RuntimeError no filter weights given N/A N/A N/A N/A weights flags contiguous N/A N/A weights N/A N/A weights copy N/A axis N/A N/A _ni_support _check_axis axis N/A input ndim N/A N/A N/A N/A N/A N/A len weights 2 origin 0 N/A N/A N/A N/A len weights 2 origin N/A len weights N/A N/A N/A ValueError invalid origin N/A mode N/A N/A _ni_support _extend_mode_to_code mode N/A N/A N/A _nd_image correlate1d input weights axis output mode cval origin N/A return_value N/A docfiller convolve1d N/A N/A input weights axis output mode cval origin N/A -1 None reflect 0.0 0 N/A N/A Calculate a one-dimensional convolution along the given axis.

    The lines of the array along the given axis are convolved with the
    given weights.

    Parameters
    ----------
    %(input)s
    weights : ndarray
        One-dimensional sequence of numbers.
    %(axis)s
    %(output)s
    %(mode)s
    %(cval)s
    %(origin)s

    Returns
    -------
    convolve1d : ndarray
        Convolved array with same shape as input

     N/A weights N/A weights N/A -1 N/A origin N/A origin N/A N/A N/A N/A len weights 1 N/A N/A origin 1 N/A N/A correlate1d input weights axis output mode cval origin N/A docfiller gaussian_filter1d N/A N/A input sigma axis order output mode cval truncate N/A -1 0 None reflect 0.0 4.0 N/A N/A One-dimensional Gaussian filter.

    Parameters
    ----------
    %(input)s
    sigma : scalar
        standard deviation for Gaussian kernel
    %(axis)s
    order : {0, 1, 2, 3}, optional
        An order of 0 corresponds to convolution with a Gaussian
        kernel. An order of 1, 2, or 3 corresponds to convolution with
        the first, second or third derivatives of a Gaussian. Higher
        order derivatives are not implemented
    %(output)s
    %(mode)s
    %(cval)s
    truncate : float, optional
        Truncate the filter at this many standard deviations.
        Default is 4.0.

    Returns
    -------
    gaussian_filter1d : ndarray

     N/A N/A order N/A range 4 N/A N/A N/A ValueError Order outside 0..3 not implemented N/A sd N/A float sigma N/A lw N/A int N/A N/A truncate sd 0.5 N/A weights N/A N/A 0.0 N/A N/A 2 lw 1 N/A N/A weights N/A lw 1.0 N/A sum 1.0 N/A sd N/A sd sd N/A ii N/A range 1 N/A lw 1 N/A N/A tmp N/A N/A math exp N/A N/A -0.5 N/A float N/A ii ii sd N/A N/A weights N/A N/A lw ii tmp N/A N/A weights N/A N/A lw ii tmp N/A sum N/A 2.0 tmp N/A ii N/A range N/A N/A 2 lw 1 N/A N/A N/A weights N/A ii sum N/A N/A order 1 N/A N/A N/A weights N/A lw 0.0 N/A ii N/A range 1 N/A lw 1 N/A N/A x N/A float ii N/A tmp N/A N/A N/A x sd N/A weights N/A N/A lw ii N/A N/A weights N/A N/A lw ii N/A tmp N/A N/A weights N/A N/A lw ii tmp N/A N/A N/A order 2 N/A N/A N/A weights N/A lw N/A -1.0 sd N/A ii N/A range 1 N/A lw 1 N/A N/A x N/A float ii N/A tmp N/A N/A N/A N/A N/A x x sd 1.0 N/A weights N/A N/A lw ii sd N/A N/A weights N/A N/A lw ii tmp N/A N/A weights N/A N/A lw ii tmp N/A N/A N/A order 3 N/A N/A N/A weights N/A lw 0.0 N/A sd2 N/A sd sd N/A ii N/A range 1 N/A lw 1 N/A N/A x N/A float ii N/A tmp N/A N/A N/A N/A 3.0 N/A N/A x x sd x N/A weights N/A N/A lw ii sd2 N/A N/A weights N/A N/A lw ii N/A tmp N/A N/A weights N/A N/A lw ii tmp N/A N/A correlate1d input weights axis output mode cval 0 N/A docfiller gaussian_filter N/A N/A input sigma order output mode cval truncate N/A 0 None reflect 0.0 4.0 N/A N/A Multidimensional Gaussian filter.

    Parameters
    ----------
    %(input)s
    sigma : scalar or sequence of scalars
        Standard deviation for Gaussian kernel. The standard
        deviations of the Gaussian filter are given for each axis as a
        sequence, or as a single number, in which case it is equal for
        all axes.
    order : {0, 1, 2, 3} or sequence from same set, optional
        The order of the filter along each axis is given as a sequence
        of integers, or as a single number.  An order of 0 corresponds
        to convolution with a Gaussian kernel. An order of 1, 2, or 3
        corresponds to convolution with the first, second or third
        derivatives of a Gaussian. Higher order derivatives are not
        implemented
    %(output)s
    %(mode)s
    %(cval)s
    truncate : float
        Truncate the filter at this many standard deviations.
        Default is 4.0.

    Returns
    -------
    gaussian_filter : ndarray
        Returned array of same shape as `input`.

    Notes
    -----
    The multidimensional filter is implemented as a sequence of
    one-dimensional convolution filters. The intermediate arrays are
    stored in the same data type as the output. Therefore, for output
    types with a limited precision, the results may be imprecise
    because intermediate results may be stored with insufficient
    precision.

     N/A input N/A N/A numpy asarray input N/A N/A output return_value N/A N/A _ni_support _get_output output input N/A orders N/A N/A _ni_support _normalize_sequence order N/A input ndim N/A N/A N/A N/A N/A set orders issubset N/A set N/A range 4 N/A N/A N/A ValueError Order outside 0..4 not implemented N/A sigmas N/A N/A _ni_support _normalize_sequence sigma N/A input ndim N/A axes N/A list N/A range N/A input ndim N/A axes N/A N/A N/A axes N/A ii N/A sigmas N/A ii N/A orders N/A ii N/A ii N/A range N/A len axes N/A N/A sigmas N/A ii 1e-15 N/A N/A N/A len axes 0 N/A N/A N/A axis sigma order axes N/A N/A N/A gaussian_filter1d input sigma axis order output mode cval truncate N/A input output N/A N/A N/A output N/A N/A input N/A N/A return_value N/A docfiller prewitt N/A N/A input axis output mode cval N/A -1 None reflect 0.0 N/A N/A Calculate a Prewitt filter.

    Parameters
    ----------
    %(input)s
    %(axis)s
    %(output)s
    %(mode)s
    %(cval)s
     N/A input N/A N/A numpy asarray input N/A axis N/A N/A _ni_support _check_axis axis N/A input ndim N/A N/A output return_value N/A N/A _ni_support _get_output output input N/A N/A correlate1d input N/A -1 0 1 axis output mode cval 0 N/A axes N/A ii N/A ii N/A range N/A input ndim N/A ii axis N/A ii axes N/A N/A N/A correlate1d output N/A 1 1 1 ii output mode cval 0 N/A return_value N/A docfiller sobel N/A N/A input axis output mode cval N/A -1 None reflect 0.0 N/A N/A Calculate a Sobel filter.

    Parameters
    ----------
    %(input)s
    %(axis)s
    %(output)s
    %(mode)s
    %(cval)s
     N/A input N/A N/A numpy asarray input N/A axis N/A N/A _ni_support _check_axis axis N/A input ndim N/A N/A output return_value N/A N/A _ni_support _get_output output input N/A N/A correlate1d input N/A -1 0 1 axis output mode cval 0 N/A axes N/A ii N/A ii N/A range N/A input ndim N/A ii axis N/A ii axes N/A N/A N/A correlate1d output N/A 1 2 1 ii output mode cval 0 N/A return_value N/A docfiller generic_laplace N/A N/A input derivative2 output mode cval extra_arguments extra_keywords N/A None reflect 0.0 N/A None N/A N/A N-dimensional Laplace filter using a provided second derivative function

    Parameters
    ----------
    %(input)s
    derivative2 : callable
        Callable with the following signature::

            derivative2(input, axis, output, mode, cval,
                        *extra_arguments, **extra_keywords)

        See `extra_arguments`, `extra_keywords` below.
    %(output)s
    %(mode)s
    %(cval)s
    %(extra_keywords)s
    %(extra_arguments)s
     N/A N/A extra_keywords None N/A N/A extra_keywords N/A N/A input N/A N/A numpy asarray input N/A N/A output return_value N/A N/A _ni_support _get_output output input N/A axes N/A list N/A range N/A input ndim N/A N/A N/A len axes 0 N/A N/A N/A derivative2 input N/A axes N/A 0 output mode cval extra_arguments extra_keywords N/A ii N/A range 1 N/A len axes N/A N/A tmp N/A derivative2 input N/A axes N/A ii N/A output dtype mode cval extra_arguments extra_keywords N/A output tmp N/A N/A N/A output N/A N/A input N/A N/A return_value N/A docfiller laplace N/A N/A input output mode cval N/A None reflect 0.0 N/A N/A N-dimensional Laplace filter based on approximate second derivatives.

    Parameters
    ----------
    %(input)s
    %(output)s
    %(mode)s
    %(cval)s
     derivative2 N/A N/A input axis output mode cval N/A N/A N/A N/A correlate1d input N/A 1 -2 1 axis output mode cval 0 N/A N/A N/A generic_laplace input derivative2 output mode cval N/A docfiller gaussian_laplace N/A N/A input sigma output mode cval N/A None reflect 0.0 kwargs N/A N/A Multidimensional Laplace filter using gaussian second derivatives.

    Parameters
    ----------
    %(input)s
    sigma : scalar or sequence of scalars
        The standard deviations of the Gaussian filter are given for
        each axis as a sequence, or as a single number, in which case
        it is equal for all axes.
    %(output)s
    %(mode)s
    %(cval)s
    Extra keyword arguments will be passed to gaussian_filter().
     N/A input N/A N/A numpy asarray input derivative2 N/A N/A input axis output mode cval sigma N/A kwargs N/A N/A order N/A N/A 0 N/A input ndim N/A N/A order N/A axis 2 N/A N/A gaussian_filter input sigma order output mode cval kwargs N/A N/A N/A generic_laplace input derivative2 output mode cval extra_arguments N/A sigma extra_keywords kwargs N/A docfiller generic_gradient_magnitude N/A N/A input derivative output mode cval extra_arguments extra_keywords N/A None reflect 0.0 N/A None N/A N/A Gradient magnitude using a provided gradient function.

    Parameters
    ----------
    %(input)s
    derivative : callable
        Callable with the following signature::

            derivative(input, axis, output, mode, cval,
                       *extra_arguments, **extra_keywords)

        See `extra_arguments`, `extra_keywords` below.
        `derivative` can assume that `input` and `output` are ndarrays.
        Note that the output from `derivative` is modified inplace;
        be careful to copy important inputs before returning them.
    %(output)s
    %(mode)s
    %(cval)s
    %(extra_keywords)s
    %(extra_arguments)s
     N/A N/A extra_keywords None N/A N/A extra_keywords N/A N/A input N/A N/A numpy asarray input N/A N/A output return_value N/A N/A _ni_support _get_output output input N/A axes N/A list N/A range N/A input ndim N/A N/A N/A len axes 0 N/A N/A N/A derivative input N/A axes N/A 0 output mode cval extra_arguments extra_keywords N/A N/A N/A numpy multiply output output output N/A ii N/A range 1 N/A len axes N/A N/A tmp N/A derivative input N/A axes N/A ii N/A output dtype mode cval extra_arguments extra_keywords N/A N/A N/A numpy multiply tmp tmp tmp N/A output tmp N/A N/A N/A numpy sqrt output output casting unsafe N/A N/A N/A output N/A N/A input N/A N/A return_value N/A docfiller gaussian_gradient_magnitude N/A N/A input sigma output mode cval N/A None reflect 0.0 kwargs N/A N/A Multidimensional gradient magnitude using Gaussian derivatives.

    Parameters
    ----------
    %(input)s
    sigma : scalar or sequence of scalars
        The standard deviations of the Gaussian filter are given for
        each axis as a sequence, or as a single number, in which case
        it is equal for all axes..
    %(output)s
    %(mode)s
    %(cval)s
    Extra keyword arguments will be passed to gaussian_filter().
     N/A input N/A N/A numpy asarray input derivative N/A N/A input axis output mode cval sigma N/A kwargs N/A N/A order N/A N/A 0 N/A input ndim N/A N/A order N/A axis 1 N/A N/A gaussian_filter input sigma order output mode cval kwargs N/A N/A N/A generic_gradient_magnitude input derivative output mode cval extra_arguments N/A sigma extra_keywords kwargs N/A docfiller _correlate_or_convolve N/A N/A input weights output mode cval origin convolution N/A N/A N/A input N/A N/A numpy asarray input N/A N/A N/A numpy iscomplexobj input N/A N/A N/A TypeError Complex type not supported N/A origins N/A N/A _ni_support _normalize_sequence origin N/A input ndim N/A weights N/A N/A numpy asarray weights dtype N/A numpy float64 N/A wshape N/A ii N/A ii N/A weights shape N/A ii 0 N/A N/A N/A len wshape N/A input ndim N/A N/A N/A RuntimeError filter weights array has incorrect shape. N/A convolution N/A N/A weights N/A weights N/A N/A tuple N/A N/A N/A slice None None -1 N/A weights ndim N/A ii N/A range N/A len origins N/A N/A N/A origins N/A ii N/A N/A origins N/A ii N/A N/A N/A N/A N/A weights shape N/A ii 1 N/A N/A N/A origins N/A ii 1 N/A N/A origin lenw N/A zip origins wshape N/A N/A N/A N/A N/A N/A lenw 2 origin 0 N/A N/A N/A lenw 2 origin lenw N/A N/A N/A ValueError invalid origin N/A N/A N/A N/A weights flags contiguous N/A N/A weights N/A N/A weights copy N/A N/A output return_value N/A N/A _ni_support _get_output output input N/A mode N/A N/A _ni_support _extend_mode_to_code mode N/A N/A N/A _nd_image correlate input weights output mode cval origins N/A return_value N/A correlate N/A N/A input weights output mode cval origin N/A None reflect 0.0 0 N/A N/A 
    Multi-dimensional correlation.

    The array is correlated with the given kernel.

    Parameters
    ----------
    input : array-like
        input array to filter
    weights : ndarray
        array of weights, same number of dimensions as input
    output : array, optional
        The ``output`` parameter passes an array in which to store the
        filter output.
    mode : {'reflect','constant','nearest','mirror', 'wrap'}, optional
        The ``mode`` parameter determines how the array borders are
        handled, where ``cval`` is the value when mode is equal to
        'constant'. Default is 'reflect'
    cval : scalar, optional
        Value to fill past edges of input if ``mode`` is 'constant'. Default
        is 0.0
    origin : scalar, optional
        The ``origin`` parameter controls the placement of the filter.
        Default 0

    See Also
    --------
    convolve : Convolve an image with a kernel.

     N/A N/A _correlate_or_convolve input weights output mode cval origin False N/A docfiller convolve N/A N/A input weights output mode cval origin N/A None reflect 0.0 0 N/A N/A 
    Multidimensional convolution.

    The array is convolved with the given kernel.

    Parameters
    ----------
    input : array_like
        Input array to filter.
    weights : array_like
        Array of weights, same number of dimensions as input
    output : ndarray, optional
        The `output` parameter passes an array in which to store the
        filter output.
    mode : {'reflect','constant','nearest','mirror', 'wrap'}, optional
        the `mode` parameter determines how the array borders are
        handled. For 'constant' mode, values beyond borders are set to be
        `cval`. Default is 'reflect'.
    cval : scalar, optional
        Value to fill past edges of input if `mode` is 'constant'. Default
        is 0.0
    origin : array_like, optional
        The `origin` parameter controls the placement of the filter, 
        relative to the centre of the current element of the input.  
        Default of 0 is equivalent to ``(0,)*input.ndim``.

    Returns
    -------
    result : ndarray
        The result of convolution of `input` with `weights`.

    See Also
    --------
    correlate : Correlate an image with a kernel.

    Notes
    -----
    Each value in result is :math:`C_i = \sum_j{I_{i+k-j} W_j}`, where
    W is the `weights` kernel,
    j is the n-D spatial index over :math:`W`,
    I is the `input` and k is the coordinate of the center of
    W, specified by `origin` in the input parameters.

    Examples
    --------
    Perhaps the simplest case to understand is ``mode='constant', cval=0.0``,
    because in this case borders (i.e. where the `weights` kernel, centered
    on any one value, extends beyond an edge of `input`.

    >>> a = np.array([[1, 2, 0, 0],
    ...               [5, 3, 0, 4],
    ...               [0, 0, 0, 7],
    ...               [9, 3, 0, 0]])
    >>> k = np.array([[1,1,1],[1,1,0],[1,0,0]])
    >>> from scipy import ndimage
    >>> ndimage.convolve(a, k, mode='constant', cval=0.0)
    array([[11, 10,  7,  4],
           [10,  3, 11, 11],
           [15, 12, 14,  7],
           [12,  3,  7,  0]])

    Setting ``cval=1.0`` is equivalent to padding the outer edge of `input`
    with 1.0's (and then extracting only the original region of the result).

    >>> ndimage.convolve(a, k, mode='constant', cval=1.0)
    array([[13, 11,  8,  7],
           [11,  3, 11, 14],
           [16, 12, 14, 10],
           [15,  6, 10,  5]])

    With ``mode='reflect'`` (the default), outer values are reflected at the
    edge of `input` to fill in missing values.

    >>> b = np.array([[2, 0, 0],
    ...               [1, 0, 0],
    ...               [0, 0, 0]])
    >>> k = np.array([[0,1,0], [0,1,0], [0,1,0]])
    >>> ndimage.convolve(b, k, mode='reflect')
    array([[5, 0, 0],
           [3, 0, 0],
           [1, 0, 0]])

    This includes diagonally at the corners.

    >>> k = np.array([[1,0,0],[0,1,0],[0,0,1]])
    >>> ndimage.convolve(b, k)
    array([[4, 2, 0],
           [3, 2, 0],
           [1, 1, 0]])

    With ``mode='nearest'``, the single nearest value in to an edge in
    `input` is repeated as many times as needed to match the overlapping
    `weights`.

    >>> c = np.array([[2, 0, 1],
    ...               [1, 0, 0],
    ...               [0, 0, 0]])
    >>> k = np.array([[0, 1, 0],
    ...               [0, 1, 0],
    ...               [0, 1, 0],
    ...               [0, 1, 0],
    ...               [0, 1, 0]])
    >>> ndimage.convolve(c, k, mode='nearest')
    array([[7, 0, 3],
           [5, 0, 2],
           [3, 0, 1]])

     N/A N/A _correlate_or_convolve input weights output mode cval origin True N/A docfiller uniform_filter1d N/A N/A input size axis output mode cval origin N/A -1 None reflect 0.0 0 N/A N/A Calculate a one-dimensional uniform filter along the given axis.

    The lines of the array along the given axis are filtered with a
    uniform filter of given size.

    Parameters
    ----------
    %(input)s
    size : int
        length of uniform filter
    %(axis)s
    %(output)s
    %(mode)s
    %(cval)s
    %(origin)s
     N/A input N/A N/A numpy asarray input N/A N/A N/A numpy iscomplexobj input N/A N/A N/A TypeError Complex type not supported N/A axis N/A N/A _ni_support _check_axis axis N/A input ndim N/A N/A size 1 N/A N/A N/A RuntimeError incorrect filter size N/A N/A output return_value N/A N/A _ni_support _get_output output input N/A N/A N/A N/A N/A size 2 origin 0 N/A N/A N/A size 2 origin size N/A N/A N/A ValueError invalid origin N/A mode N/A N/A _ni_support _extend_mode_to_code mode N/A N/A N/A _nd_image uniform_filter1d input size axis output mode cval origin N/A return_value N/A docfiller uniform_filter N/A N/A input size output mode cval origin N/A 3 None reflect 0.0 0 N/A N/A Multi-dimensional uniform filter.

    Parameters
    ----------
    %(input)s
    size : int or sequence of ints, optional
        The sizes of the uniform filter are given for each axis as a
        sequence, or as a single number, in which case the size is
        equal for all axes.
    %(output)s
    %(mode)s
    %(cval)s
    %(origin)s

    Notes
    -----
    The multi-dimensional filter is implemented as a sequence of
    one-dimensional uniform filters. The intermediate arrays are stored
    in the same data type as the output. Therefore, for output types
    with a limited precision, the results may be imprecise because
    intermediate results may be stored with insufficient precision.
     N/A input N/A N/A numpy asarray input N/A N/A output return_value N/A N/A _ni_support _get_output output input N/A sizes N/A N/A _ni_support _normalize_sequence size N/A input ndim N/A origins N/A N/A _ni_support _normalize_sequence origin N/A input ndim N/A axes N/A list N/A range N/A input ndim N/A axes N/A N/A N/A axes N/A ii N/A sizes N/A ii N/A origins N/A ii N/A ii N/A range N/A len axes N/A N/A sizes N/A ii 1 N/A N/A N/A len axes 0 N/A N/A N/A axis size origin axes N/A N/A N/A uniform_filter1d input N/A int size axis output mode cval origin N/A input output N/A N/A N/A output N/A N/A input N/A N/A return_value N/A docfiller minimum_filter1d N/A N/A input size axis output mode cval origin N/A -1 None reflect 0.0 0 N/A N/A Calculate a one-dimensional minimum filter along the given axis.

    The lines of the array along the given axis are filtered with a
    minimum filter of given size.

    Parameters
    ----------
    %(input)s
    size : int
        length along which to calculate 1D minimum
    %(axis)s
    %(output)s
    %(mode)s
    %(cval)s
    %(origin)s

    Notes
    -----
    This function implements the MINLIST algorithm [1]_, as described by
    Richard Harter [2]_, and has a guaranteed O(n) performance, `n` being
    the `input` length, regardless of filter size.

    References
    ----------
    .. [1] http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.42.2777
    .. [2] http://www.richardhartersworld.com/cri/2001/slidingmin.html
     N/A input N/A N/A numpy asarray input N/A N/A N/A numpy iscomplexobj input N/A N/A N/A TypeError Complex type not supported N/A axis N/A N/A _ni_support _check_axis axis N/A input ndim N/A N/A size 1 N/A N/A N/A RuntimeError incorrect filter size N/A N/A output return_value N/A N/A _ni_support _get_output output input N/A N/A N/A N/A N/A size 2 origin 0 N/A N/A N/A size 2 origin size N/A N/A N/A ValueError invalid origin N/A mode N/A N/A _ni_support _extend_mode_to_code mode N/A N/A N/A _nd_image min_or_max_filter1d input size axis output mode cval origin 1 N/A return_value N/A docfiller maximum_filter1d N/A N/A input size axis output mode cval origin N/A -1 None reflect 0.0 0 N/A N/A Calculate a one-dimensional maximum filter along the given axis.

    The lines of the array along the given axis are filtered with a
    maximum filter of given size.

    Parameters
    ----------
    %(input)s
    size : int
        Length along which to calculate the 1-D maximum.
    %(axis)s
    %(output)s
    %(mode)s
    %(cval)s
    %(origin)s

    Returns
    -------
    maximum1d : ndarray, None
        Maximum-filtered array with same shape as input.
        None if `output` is not None

    Notes
    -----
    This function implements the MAXLIST algorithm [1]_, as described by
    Richard Harter [2]_, and has a guaranteed O(n) performance, `n` being
    the `input` length, regardless of filter size.

    References
    ----------
    .. [1] http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.42.2777
    .. [2] http://www.richardhartersworld.com/cri/2001/slidingmin.html

     N/A input N/A N/A numpy asarray input N/A N/A N/A numpy iscomplexobj input N/A N/A N/A TypeError Complex type not supported N/A axis N/A N/A _ni_support _check_axis axis N/A input ndim N/A N/A size 1 N/A N/A N/A RuntimeError incorrect filter size N/A N/A output return_value N/A N/A _ni_support _get_output output input N/A N/A N/A N/A N/A size 2 origin 0 N/A N/A N/A size 2 origin size N/A N/A N/A ValueError invalid origin N/A mode N/A N/A _ni_support _extend_mode_to_code mode N/A N/A N/A _nd_image min_or_max_filter1d input size axis output mode cval origin 0 N/A return_value N/A docfiller _min_or_max_filter N/A N/A input size footprint structure output mode cval origin minimum N/A N/A N/A N/A structure None N/A N/A N/A footprint None N/A N/A N/A size None N/A N/A N/A RuntimeError no footprint provided N/A separable True N/A N/A footprint N/A N/A numpy asarray footprint N/A footprint N/A N/A footprint astype bool N/A N/A N/A numpy alltrue N/A N/A numpy ravel footprint axis 0 N/A N/A size N/A footprint shape N/A footprint None N/A separable True N/A N/A separable False N/A N/A structure N/A N/A numpy asarray structure dtype N/A numpy float64 N/A separable False N/A N/A footprint None N/A N/A footprint N/A N/A numpy ones N/A structure shape bool N/A N/A footprint N/A N/A numpy asarray footprint N/A footprint N/A N/A footprint astype bool N/A input N/A N/A numpy asarray input N/A N/A N/A numpy iscomplexobj input N/A N/A N/A TypeError Complex type not supported N/A N/A output return_value N/A N/A _ni_support _get_output output input N/A origins N/A N/A _ni_support _normalize_sequence origin N/A input ndim N/A separable N/A N/A sizes N/A N/A _ni_support _normalize_sequence size N/A input ndim N/A axes N/A list N/A range N/A input ndim N/A axes N/A N/A N/A axes N/A ii N/A sizes N/A ii N/A origins N/A ii N/A ii N/A range N/A len axes N/A N/A sizes N/A ii 1 N/A minimum N/A N/A filter_ minimum_filter1d N/A N/A filter_ maximum_filter1d N/A N/A N/A len axes 0 N/A N/A N/A axis size origin axes N/A N/A N/A filter_ input N/A int size axis output mode cval origin N/A input output N/A N/A N/A output N/A N/A input N/A N/A N/A fshape N/A ii N/A ii N/A footprint shape N/A ii 0 N/A N/A N/A len fshape N/A input ndim N/A N/A N/A RuntimeError footprint array has incorrect shape. N/A N/A origin lenf N/A zip origins fshape N/A N/A N/A N/A N/A N/A lenf 2 origin 0 N/A N/A N/A lenf 2 origin lenf N/A N/A N/A ValueError invalid origin N/A N/A N/A N/A footprint flags contiguous N/A N/A footprint N/A N/A footprint copy N/A N/A structure None N/A N/A N/A N/A len N/A structure shape N/A input ndim N/A N/A N/A RuntimeError structure array has incorrect shape N/A N/A N/A N/A structure flags contiguous N/A N/A structure N/A N/A structure copy N/A mode N/A N/A _ni_support _extend_mode_to_code mode N/A N/A N/A _nd_image min_or_max_filter input footprint structure output mode cval origins minimum N/A return_value N/A minimum_filter N/A N/A input size footprint output mode cval origin N/A None None None reflect 0.0 0 N/A N/A Calculates a multi-dimensional minimum filter.

    Parameters
    ----------
    %(input)s
    %(size_foot)s
    %(output)s
    %(mode)s
    %(cval)s
    %(origin)s
     N/A N/A _min_or_max_filter input size footprint None output mode cval origin 1 N/A docfiller maximum_filter N/A N/A input size footprint output mode cval origin N/A None None None reflect 0.0 0 N/A N/A Calculates a multi-dimensional maximum filter.

    Parameters
    ----------
    %(input)s
    %(size_foot)s
    %(output)s
    %(mode)s
    %(cval)s
    %(origin)s
     N/A N/A _min_or_max_filter input size footprint None output mode cval origin 0 N/A docfiller _rank_filter N/A N/A input rank size footprint output mode cval origin operation N/A None None None reflect 0.0 0 rank N/A N/A input N/A N/A numpy asarray input N/A N/A N/A numpy iscomplexobj input N/A N/A N/A TypeError Complex type not supported N/A origins N/A N/A _ni_support _normalize_sequence origin N/A input ndim N/A N/A footprint None N/A N/A N/A size None N/A N/A N/A RuntimeError no footprint or filter size provided N/A sizes N/A N/A _ni_support _normalize_sequence size N/A input ndim N/A footprint N/A N/A numpy ones sizes dtype bool N/A N/A footprint N/A N/A numpy asarray footprint dtype bool N/A fshape N/A ii N/A ii N/A footprint shape N/A ii 0 N/A N/A N/A len fshape N/A input ndim N/A N/A N/A RuntimeError filter footprint array has incorrect shape. N/A N/A origin lenf N/A zip origins fshape N/A N/A N/A N/A N/A N/A lenf 2 origin 0 N/A N/A N/A lenf 2 origin lenf N/A N/A N/A ValueError invalid origin N/A N/A N/A N/A footprint flags contiguous N/A N/A footprint N/A N/A footprint copy N/A filter_size N/A N/A N/A N/A numpy where footprint 1 0 sum N/A N/A operation median N/A N/A rank N/A filter_size 2 N/A N/A N/A operation percentile N/A N/A percentile rank N/A N/A percentile 0.0 N/A N/A percentile 100.0 N/A N/A N/A percentile 0 N/A percentile 100 N/A N/A N/A RuntimeError invalid percentile N/A N/A percentile 100.0 N/A N/A rank N/A filter_size 1 N/A N/A rank N/A int N/A N/A N/A float filter_size percentile 100.0 N/A N/A rank 0 N/A N/A rank filter_size N/A N/A N/A rank 0 N/A rank filter_size N/A N/A N/A RuntimeError rank not within filter footprint size N/A N/A rank 0 N/A N/A N/A minimum_filter input None footprint output mode cval origins N/A N/A N/A rank N/A filter_size 1 N/A N/A N/A maximum_filter input None footprint output mode cval origins N/A N/A N/A output return_value N/A N/A _ni_support _get_output output input N/A mode N/A N/A _ni_support _extend_mode_to_code mode N/A N/A N/A _nd_image rank_filter input rank footprint output mode cval origins N/A return_value N/A docfiller rank_filter N/A N/A input rank size footprint output mode cval origin N/A None None None reflect 0.0 0 N/A N/A Calculates a multi-dimensional rank filter.

    Parameters
    ----------
    %(input)s
    rank : int
        The rank parameter may be less then zero, i.e., rank = -1
        indicates the largest element.
    %(size_foot)s
    %(output)s
    %(mode)s
    %(cval)s
    %(origin)s
     N/A N/A _rank_filter input rank size footprint output mode cval origin rank N/A docfiller median_filter N/A N/A input size footprint output mode cval origin N/A None None None reflect 0.0 0 N/A N/A 
    Calculates a multidimensional median filter.

    Parameters
    ----------
    %(input)s
    %(size_foot)s
    %(output)s
    %(mode)s
    %(cval)s
    %(origin)s

    Returns
    -------
    median_filter : ndarray
        Return of same shape as `input`.

     N/A N/A _rank_filter input 0 size footprint output mode cval origin median N/A docfiller percentile_filter N/A N/A input percentile size footprint output mode cval origin N/A None None None reflect 0.0 0 N/A N/A Calculates a multi-dimensional percentile filter.

    Parameters
    ----------
    %(input)s
    percentile : scalar
        The percentile parameter may be less then zero, i.e.,
        percentile = -20 equals percentile = 80
    %(size_foot)s
    %(output)s
    %(mode)s
    %(cval)s
    %(origin)s
     N/A N/A _rank_filter input percentile size footprint output mode cval origin percentile N/A docfiller generic_filter1d N/A N/A input function filter_size axis output mode cval origin extra_arguments extra_keywords N/A -1 None reflect 0.0 0 N/A None N/A N/A Calculate a one-dimensional filter along the given axis.

    `generic_filter1d` iterates over the lines of the array, calling the
    given function at each line. The arguments of the line are the
    input line, and the output line. The input and output lines are 1D
    double arrays.  The input line is extended appropriately according
    to the filter size and origin. The output line must be modified
    in-place with the result.

    Parameters
    ----------
    %(input)s
    function : callable
        Function to apply along given axis.
    filter_size : scalar
        Length of the filter.
    %(axis)s
    %(output)s
    %(mode)s
    %(cval)s
    %(origin)s
    %(extra_arguments)s
    %(extra_keywords)s
     N/A N/A extra_keywords None N/A N/A extra_keywords N/A N/A input N/A N/A numpy asarray input N/A N/A N/A numpy iscomplexobj input N/A N/A N/A TypeError Complex type not supported N/A N/A output return_value N/A N/A _ni_support _get_output output input N/A N/A filter_size 1 N/A N/A N/A RuntimeError invalid filter size N/A axis N/A N/A _ni_support _check_axis axis N/A input ndim N/A N/A N/A N/A N/A filter_size 2 origin 0 N/A N/A N/A filter_size 2 origin filter_size N/A N/A N/A ValueError invalid origin N/A mode N/A N/A _ni_support _extend_mode_to_code mode N/A N/A N/A _nd_image generic_filter1d input function filter_size axis output mode cval origin extra_arguments extra_keywords N/A return_value N/A docfiller generic_filter N/A N/A input function size footprint output mode cval origin extra_arguments extra_keywords N/A None None None reflect 0.0 0 N/A None N/A N/A Calculates a multi-dimensional filter using the given function.

    At each element the provided function is called. The input values
    within the filter footprint at that element are passed to the function
    as a 1D array of double values.

    Parameters
    ----------
    %(input)s
    function : callable
        Function to apply at each element.
    %(size_foot)s
    %(output)s
    %(mode)s
    %(cval)s
    %(origin)s
    %(extra_arguments)s
    %(extra_keywords)s
     N/A N/A extra_keywords None N/A N/A extra_keywords N/A N/A input N/A N/A numpy asarray input N/A N/A N/A numpy iscomplexobj input N/A N/A N/A TypeError Complex type not supported N/A origins N/A N/A _ni_support _normalize_sequence origin N/A input ndim N/A N/A footprint None N/A N/A N/A size None N/A N/A N/A RuntimeError no footprint or filter size provided N/A sizes N/A N/A _ni_support _normalize_sequence size N/A input ndim N/A footprint N/A N/A numpy ones sizes dtype bool N/A N/A footprint N/A N/A numpy asarray footprint N/A footprint N/A N/A footprint astype bool N/A fshape N/A ii N/A ii N/A footprint shape N/A ii 0 N/A N/A N/A len fshape N/A input ndim N/A N/A N/A RuntimeError filter footprint array has incorrect shape. N/A N/A origin lenf N/A zip origins fshape N/A N/A N/A N/A N/A N/A lenf 2 origin 0 N/A N/A N/A lenf 2 origin lenf N/A N/A N/A ValueError invalid origin N/A N/A N/A N/A footprint flags contiguous N/A N/A footprint N/A N/A footprint copy N/A N/A output return_value N/A N/A _ni_support _get_output output input N/A mode N/A N/A _ni_support _extend_mode_to_code mode N/A N/A N/A _nd_image generic_filter input function footprint output mode cval origins extra_arguments extra_keywords N/A return_value N/A docfiller