@@ -668,44 +668,6 @@ def test__blurring_mask_2d_from__mask_extends_beyond_edge_so_raises_mask_excepti
668668 util .mask_2d .blurring_mask_2d_from (mask , kernel_shape_native = (5 , 5 ))
669669
670670
671- def test__mask_2d_via_shape_native_and_native_for_slim ():
672- slim_to_native = np .array ([[0 , 0 ], [0 , 1 ], [1 , 0 ], [1 , 1 ]])
673- shape = (2 , 2 )
674-
675- mask = util .mask_2d .mask_2d_via_shape_native_and_native_for_slim (
676- shape_native = shape , native_for_slim = slim_to_native
677- )
678-
679- assert (mask == np .array ([[False , False ], [False , False ]])).all ()
680-
681- slim_to_native = np .array ([[0 , 0 ], [0 , 1 ], [1 , 0 ]])
682- shape = (2 , 2 )
683-
684- mask = util .mask_2d .mask_2d_via_shape_native_and_native_for_slim (
685- shape_native = shape , native_for_slim = slim_to_native
686- )
687-
688- assert (mask == np .array ([[False , False ], [False , True ]])).all ()
689-
690- slim_to_native = np .array ([[0 , 0 ], [0 , 1 ], [1 , 0 ], [2 , 0 ], [2 , 1 ], [2 , 3 ]])
691- shape = (3 , 4 )
692-
693- mask = util .mask_2d .mask_2d_via_shape_native_and_native_for_slim (
694- shape_native = shape , native_for_slim = slim_to_native
695- )
696-
697- assert (
698- mask
699- == np .array (
700- [
701- [False , False , True , True ],
702- [False , True , True , True ],
703- [False , False , True , False ],
704- ]
705- )
706- ).all ()
707-
708-
709671def test__mask_1d_indexes_from ():
710672 mask = np .array (
711673 [
0 commit comments