diff --git a/rdtools/test/analysis_chains_test.py b/rdtools/test/analysis_chains_test.py index 3cea466e..358ff8a6 100644 --- a/rdtools/test/analysis_chains_test.py +++ b/rdtools/test/analysis_chains_test.py @@ -404,7 +404,7 @@ def test_filter_ad_hoc_warnings(workflow, sensor_parameters): # warning about NaNs ad_hoc_filter = pd.Series(True, index=sensor_parameters["pv"].index) - ad_hoc_filter.iloc[10] = None # np.nan + ad_hoc_filter.iloc[10] = pd.NA rd_analysis.filter_params["ad_hoc_filter"] = ad_hoc_filter with pytest.warns( UserWarning, match="ad_hoc_filter contains NaN values; setting to False" @@ -455,7 +455,7 @@ def test_aggregated_filter_ad_hoc_warnings(workflow, sensor_parameters): rd_analysis_2.filter_params = {"clearsky_filter": {"model": "csi"}} daily_ad_hoc_filter = pd.Series(True, index=sensor_parameters["pv"].index) daily_ad_hoc_filter = daily_ad_hoc_filter.resample("1D").first().dropna(how="all") - daily_ad_hoc_filter.iloc[10] = np.nan + daily_ad_hoc_filter.iloc[10] = pd.NA rd_analysis_2.filter_params_aggregated["ad_hoc_filter"] = daily_ad_hoc_filter with pytest.warns( UserWarning, match="ad_hoc_filter contains NaN values; setting to False"