@@ -85,7 +85,7 @@ def test_good_cutoff(cutoff_region, cr_pts, cr_vals, expected):
8585@pytest .mark .parametrize (
8686 "rdf_tag, cutoff" ,
8787 [
88- ("fec_F" , np .NaN ),
88+ ("fec_F" , np .nan ),
8989 ("fec_O" , 3.30 ),
9090 ("fec_all" , 2.74 ),
9191 ("bn_all" , 2.64 ),
@@ -108,7 +108,7 @@ def test_identify_cutoff_poly_easy(
108108@pytest .mark .parametrize (
109109 "rdf_tag, cutoff" ,
110110 [
111- ("fec_F" , np .NaN ),
111+ ("fec_F" , np .nan ),
112112 ("fec_O" , 3.30 ),
113113 ("fec_all" , 2.74 ),
114114 ("bn_all" , 2.64 ),
@@ -122,7 +122,7 @@ def test_identify_cutoff_scipy_easy(
122122):
123123 bins , rdf = rdf_bins_and_data_easy [rdf_tag ]
124124 np .testing .assert_allclose (
125- identify_cutoff_scipy (bins , rdf , failure_behavior = "warn" , default = np .NaN ),
125+ identify_cutoff_scipy (bins , rdf , failure_behavior = "warn" , default = np .nan ),
126126 cutoff ,
127127 atol = 0.2 ,
128128 equal_nan = True ,
@@ -148,8 +148,8 @@ def test_identify_scipy_hard(
148148 bins_ez , rdf_ez = rdf_bins_and_data_easy [rdf_tag ]
149149 bins_hd , rdf_hd = rdf_bins_and_data_hard [rdf_tag ]
150150 np .testing .assert_allclose (
151- identify_cutoff_scipy (bins_hd , rdf_hd , failure_behavior = "warn" , default = np .NaN ),
152- identify_cutoff_scipy (bins_ez , rdf_ez , failure_behavior = "warn" , default = np .NaN ),
151+ identify_cutoff_scipy (bins_hd , rdf_hd , failure_behavior = "warn" , default = np .nan ),
152+ identify_cutoff_scipy (bins_ez , rdf_ez , failure_behavior = "warn" , default = np .nan ),
153153 atol = 0.2 ,
154154 equal_nan = True ,
155155 )
@@ -201,11 +201,11 @@ def test_identify_cutoff_non_solv(rdf_tag, rdf_bins_and_data_non_solv):
201201 bins , rdf = rdf_bins_and_data_non_solv [rdf_tag ]
202202 np .testing .assert_allclose (
203203 identify_cutoff_poly (bins , rdf , failure_behavior = "warn" ),
204- np .NaN ,
204+ np .nan ,
205205 equal_nan = True ,
206206 )
207207 np .testing .assert_allclose (
208- identify_cutoff_scipy (bins , rdf , failure_behavior = "warn" , default = np .NaN ),
209- np .NaN ,
208+ identify_cutoff_scipy (bins , rdf , failure_behavior = "warn" , default = np .nan ),
209+ np .nan ,
210210 equal_nan = True ,
211211 )
0 commit comments