@@ -864,7 +864,7 @@ def test_domain(self):
864864 with pytest .raises (ValueError ):
865865 bounding_box .domain (0.25 , order )
866866
867- def test__nan_index (self ):
867+ def test__outside (self ):
868868 intervals = {0 : Interval (- 1 , 1 ), 1 : Interval (0 , 2 )}
869869 model = Gaussian2D ()
870870 bounding_box = BoundingBox .validate (model , intervals )
@@ -874,7 +874,7 @@ def test__nan_index(self):
874874 y = np .linspace (0 , 2 , 13 )
875875 input_shape = x .shape
876876 inputs = (x , y )
877- nan_index , all_out = bounding_box ._nan_index (input_shape , inputs )
877+ nan_index , all_out = bounding_box ._outside (input_shape , inputs )
878878 assert (nan_index == [False for _ in range (13 )]).all ()
879879 assert not all_out and isinstance (all_out , bool )
880880
@@ -883,7 +883,7 @@ def test__nan_index(self):
883883 y = np .linspace (0 , 3 , 13 )
884884 input_shape = x .shape
885885 inputs = (x , y )
886- nan_index , all_out = bounding_box ._nan_index (input_shape , inputs )
886+ nan_index , all_out = bounding_box ._outside (input_shape , inputs )
887887 assert (nan_index ==
888888 [True , True , True , True ,
889889 False , False , False , False , False ,
@@ -895,21 +895,21 @@ def test__nan_index(self):
895895 y = np .linspace (- 2 , - 1 , 13 )
896896 input_shape = x .shape
897897 inputs = (x , y )
898- nan_index , all_out = bounding_box ._nan_index (input_shape , inputs )
898+ nan_index , all_out = bounding_box ._outside (input_shape , inputs )
899899 assert (nan_index == [True for _ in range (13 )]).all ()
900900 assert not all_out and isinstance (all_out , bool )
901901
902902 # Scalar input inside bounding_box
903903 inputs = (0.5 , 0.5 )
904904 input_shape = (1 ,)
905- nan_index , all_out = bounding_box ._nan_index (input_shape , inputs )
905+ nan_index , all_out = bounding_box ._outside (input_shape , inputs )
906906 assert (nan_index == [False ]).all ()
907907 assert not all_out and isinstance (all_out , bool )
908908
909909 # Scalar input outside bounding_box
910910 inputs = (2 , - 1 )
911911 input_shape = (1 ,)
912- nan_index , all_out = bounding_box ._nan_index (input_shape , inputs )
912+ nan_index , all_out = bounding_box ._outside (input_shape , inputs )
913913 assert (nan_index == [True ]).all ()
914914 assert all_out and isinstance (all_out , bool )
915915
0 commit comments