Module Import alias identifier ImportFrom alias alias ImportFrom alias Import alias identifier ImportFrom alias Assign NameStore Num ClassDef bases body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad BinOpMult Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Num attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index CompareEq NameLoad NameLoad Assert Call AttributeLoad NameLoad attr CompareEq NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num keyword NameLoad Expr Call NameLoad Call NameLoad NameLoad Num ListLoad ListLoad Num Num ListLoad Num Num Expr Call NameLoad Call NameLoad NameLoad Num ListLoad ListLoad Num Num ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call NameLoad Call NameLoad NameLoad ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call NameLoad Call NameLoad NameLoad keyword Num ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign NameStore Call NameLoad NameLoad keyword Num Expr Call NameLoad NameLoad ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call NameLoad Call NameLoad NameLoad keyword Num keyword Num ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call NameLoad SubscriptLoad Call NameLoad NameLoad keyword NameLoad Index Num Num Expr Call NameLoad SubscriptLoad Call NameLoad NameLoad keyword Num keyword NameLoad Index Num Num decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Num Num Num NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Num Num Num NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Num Num Num Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad BinOpMult Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Num attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index CompareEq NameLoad NameLoad Assert Call AttributeLoad NameLoad attr CompareEq NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Num Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Num Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Num Expr Call NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Num Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Num Expr Call NameLoad Call NameLoad NameLoad Num NameLoad Expr Call NameLoad Call NameLoad NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num NameLoad Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num NameLoad NameLoad ListLoad Num NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad NameLoad NameLoad NameLoad ListLoad NameLoad Num Num ListLoad NameLoad NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad keyword Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num NameLoad Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad NameLoad NameLoad Num ListLoad NameLoad NameLoad Num ListLoad Num Num Num Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num NameLoad ListLoad Num NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Num Assign NameStore BinOpMult Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Num Expr Call NameLoad Call NameLoad NameLoad keyword Num keyword Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call NameLoad SubscriptLoad Call NameLoad NameLoad keyword NameLoad Index Num Num Expr Call NameLoad SubscriptLoad Call NameLoad NameLoad keyword Num keyword NameLoad Index Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Num Num Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Num Num Num Num Assign NameStore TupleLoad TupleLoad NameLoad TupleLoad Num NameLoad TupleLoad NameLoad Num TupleLoad Num NameLoad Num TupleLoad NameLoad Num Num TupleLoad Num Num NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad TupleLoad Num Num Num TupleLoad Num Num Num TupleLoad Num Num Num TupleLoad Num Num TupleLoad Num For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad CompareEq NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assert CompareEq SubscriptLoad NameLoad Index NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A numpy np numpy.testing assert_array_equal run_module_suite skimage.measure label N/A skimage.measure._ccomp ccomp skimage._shared._warnings expected_warnings N/A BG 0 TestConnectedComponents N/A N/A setup N/A N/A self N/A N/A N/A N/A self x N/A N/A np array N/A N/A 0 0 3 2 1 9 N/A 0 1 1 9 2 9 N/A 0 0 1 9 9 9 N/A 3 1 1 5 3 0 N/A N/A self labels N/A N/A np array N/A N/A 0 0 1 2 3 4 N/A 0 5 5 4 2 4 N/A 0 0 5 4 4 4 N/A 6 5 5 7 8 0 N/A test_basic N/A N/A self N/A N/A N/A N/A assert_array_equal N/A label N/A self x N/A self labels N/A N/A N/A N/A self x N/A N/A 0 2 3 N/A test_random N/A N/A self N/A N/A N/A x N/A N/A N/A N/A N/A N/A np random rand 20 30 5 astype N/A np int N/A labels N/A label x N/A n N/A N/A labels max N/A i N/A range n N/A N/A values N/A x N/A N/A labels i N/A N/A N/A np all N/A values N/A values N/A 0 N/A test_diag N/A N/A self N/A N/A N/A x N/A N/A np array N/A N/A 0 0 1 N/A 0 1 0 N/A 1 0 0 N/A N/A assert_array_equal N/A label x x N/A test_4_vs_8 N/A N/A self N/A N/A N/A x N/A N/A np array N/A N/A 0 1 N/A 1 0 dtype int N/A N/A assert_array_equal N/A label x 4 N/A N/A 0 1 N/A 2 0 N/A N/A assert_array_equal N/A label x 8 N/A N/A 0 1 N/A 1 0 N/A test_background N/A N/A self N/A N/A N/A x N/A N/A np array N/A N/A 1 0 0 N/A 1 1 5 N/A 0 0 0 N/A N/A assert_array_equal N/A label x N/A N/A 1 0 0 N/A 1 1 2 N/A 0 0 0 N/A N/A assert_array_equal N/A label x background 0 N/A N/A 1 0 0 N/A 1 1 2 N/A 0 0 0 N/A test_background_two_regions N/A N/A self N/A N/A N/A x N/A N/A np array N/A N/A 0 0 6 N/A 0 0 6 N/A 5 5 5 N/A res N/A label x background 0 N/A N/A assert_array_equal res N/A N/A 0 0 1 N/A 0 0 1 N/A 2 2 2 N/A test_background_one_region_center N/A N/A self N/A N/A N/A x N/A N/A np array N/A N/A 0 0 0 N/A 0 1 0 N/A 0 0 0 N/A N/A assert_array_equal N/A label x neighbors 4 background 0 N/A N/A 0 0 0 N/A 0 1 0 N/A 0 0 0 N/A test_return_num N/A N/A self N/A N/A N/A x N/A N/A np array N/A N/A 1 0 6 N/A 0 0 6 N/A 5 5 5 N/A N/A assert_array_equal N/A N/A label x return_num True N/A 1 3 N/A N/A assert_array_equal N/A N/A label x background -1 return_num True N/A 1 4 N/A N/A TestConnectedComponents3d N/A N/A setup N/A N/A self N/A N/A N/A N/A self x N/A N/A np zeros N/A 3 4 5 int N/A N/A N/A self x N/A 0 N/A N/A np array N/A N/A 0 3 2 1 9 N/A 0 1 9 2 9 N/A 0 1 9 9 9 N/A 3 1 5 3 0 N/A N/A N/A self x N/A 1 N/A N/A np array N/A N/A 3 3 2 1 9 N/A 0 3 9 2 1 N/A 0 3 3 1 1 N/A 3 1 3 3 0 N/A N/A N/A self x N/A 2 N/A N/A np array N/A N/A 3 3 8 8 0 N/A 2 3 9 8 8 N/A 2 3 0 8 0 N/A 2 1 0 0 0 N/A N/A self labels N/A N/A np zeros N/A 3 4 5 int N/A N/A N/A self labels N/A 0 N/A N/A np array N/A N/A 0 1 2 3 4 N/A 0 5 4 2 4 N/A 0 5 4 4 4 N/A 1 5 6 1 0 N/A N/A N/A self labels N/A 1 N/A N/A np array N/A N/A 1 1 2 3 4 N/A 0 1 4 2 3 N/A 0 1 1 3 3 N/A 1 5 1 1 0 N/A N/A N/A self labels N/A 2 N/A N/A np array N/A N/A 1 1 7 7 0 N/A 8 1 4 7 7 N/A 8 1 0 7 0 N/A 8 5 0 0 0 N/A test_basic N/A N/A self N/A N/A N/A labels N/A label N/A self x N/A N/A assert_array_equal labels N/A self labels N/A N/A N/A N/A self x N/A N/A 0 0 2 2 Data was modified! N/A test_random N/A N/A self N/A N/A N/A x N/A N/A N/A N/A N/A N/A np random rand 20 30 5 astype N/A np int N/A labels N/A label x N/A n N/A N/A labels max N/A i N/A range n N/A N/A values N/A x N/A N/A labels i N/A N/A N/A np all N/A values N/A values N/A 0 N/A test_diag N/A N/A self N/A N/A N/A x N/A N/A np zeros N/A 3 3 3 int N/A N/A x N/A N/A 0 2 2 1 N/A N/A x N/A N/A 1 1 1 1 N/A N/A x N/A N/A 2 0 0 1 N/A N/A assert_array_equal N/A label x x N/A test_4_vs_8 N/A N/A self N/A N/A N/A x N/A N/A np zeros N/A 2 2 2 int N/A N/A x N/A N/A 0 1 1 1 N/A N/A x N/A N/A 1 0 0 1 N/A label4 N/A N/A x copy N/A N/A label4 N/A N/A 1 0 0 2 N/A N/A assert_array_equal N/A label x 4 label4 N/A N/A assert_array_equal N/A label x 8 x N/A test_background N/A N/A self N/A N/A N/A x N/A N/A np zeros N/A 2 3 3 int N/A N/A x N/A 0 N/A N/A np array N/A N/A 1 0 0 N/A 1 0 0 N/A 0 0 0 N/A N/A x N/A 1 N/A N/A np array N/A N/A 0 0 0 N/A 0 1 5 N/A 0 0 0 N/A lnb N/A N/A x copy N/A N/A lnb N/A 0 N/A N/A np array N/A N/A 1 2 2 N/A 1 2 2 N/A 2 2 2 N/A N/A lnb N/A 1 N/A N/A np array N/A N/A 2 2 2 N/A 2 1 3 N/A 2 2 2 N/A lb N/A N/A x copy N/A N/A lb N/A 0 N/A N/A np array N/A N/A 1 BG BG N/A 1 BG BG N/A BG BG BG N/A N/A lb N/A 1 N/A N/A np array N/A N/A BG BG BG N/A BG 1 2 N/A BG BG BG N/A N/A assert_array_equal N/A label x lb N/A N/A assert_array_equal N/A label x background -1 lnb N/A test_background_two_regions N/A N/A self N/A N/A N/A x N/A N/A np zeros N/A 2 3 3 int N/A N/A x N/A 0 N/A N/A np array N/A N/A 0 0 6 N/A 0 0 6 N/A 5 5 5 N/A N/A x N/A 1 N/A N/A np array N/A N/A 6 6 0 N/A 5 0 0 N/A 0 0 0 N/A lb N/A N/A x copy N/A N/A lb N/A 0 N/A N/A np array N/A N/A BG BG 1 N/A BG BG 1 N/A 2 2 2 N/A N/A lb N/A 1 N/A N/A np array N/A N/A 1 1 BG N/A 2 BG BG N/A BG BG BG N/A res N/A label x background 0 N/A N/A assert_array_equal res lb N/A test_background_one_region_center N/A N/A self N/A N/A N/A x N/A N/A np zeros N/A 3 3 3 int N/A N/A x N/A N/A 1 1 1 1 N/A lb N/A N/A N/A np ones_like x BG N/A N/A lb N/A N/A 1 1 1 1 N/A N/A assert_array_equal N/A label x neighbors 4 background 0 lb N/A test_return_num N/A N/A self N/A N/A N/A x N/A N/A np array N/A N/A 1 0 6 N/A 0 0 6 N/A 5 5 5 N/A N/A assert_array_equal N/A N/A label x return_num True N/A 1 3 N/A N/A assert_array_equal N/A N/A label x background -1 return_num True N/A 1 4 N/A test_1D N/A N/A self N/A N/A N/A x N/A N/A np array N/A 0 1 2 2 1 1 0 0 N/A xlen N/A len x N/A y N/A N/A np array N/A 0 1 2 2 3 3 0 0 N/A reshapes N/A N/A xlen N/A 1 xlen N/A xlen 1 N/A 1 xlen 1 N/A xlen 1 1 N/A 1 1 xlen N/A reshape reshapes N/A N/A x2 N/A N/A x reshape reshape N/A labelled N/A label x2 N/A N/A assert_array_equal y N/A N/A labelled flatten N/A test_nd N/A N/A self N/A N/A N/A x N/A N/A np ones N/A 1 2 3 4 N/A N/A N/A N/A np testing assert_raises NotImplementedError label x N/A N/A TestSupport N/A N/A test_reshape N/A N/A self N/A N/A N/A shapes_in N/A N/A 3 1 2 N/A 1 4 5 N/A 3 1 1 N/A 2 1 N/A 1 N/A shape shapes_in N/A N/A shape N/A N/A np array shape N/A numones N/A sum N/A shape 1 N/A inp N/A N/A N/A np random random shape N/A N/A fixed swaps N/A N/A ccomp reshape_array inp N/A shape2 N/A fixed shape N/A i N/A range numones N/A N/A N/A N/A shape2 N/A i 1 N/A back N/A N/A ccomp undo_reshape_array fixed swaps N/A N/A assert_array_equal inp back N/A N/A N/A N/A __name__ __main__ N/A N/A N/A run_module_suite