From c84bd477d0b04f7eeff1fbfd4140111f61cd57d9 Mon Sep 17 00:00:00 2001 From: Gregory Petrochenkov Date: Tue, 23 Jul 2024 16:10:35 -0700 Subject: [PATCH] Remove set_crs in tests --- tests/data_generation/data_tests.py | 2 +- tests/test_visualization.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/data_generation/data_tests.py b/tests/data_generation/data_tests.py index 1f175958..a67dbb31 100644 --- a/tests/data_generation/data_tests.py +++ b/tests/data_generation/data_tests.py @@ -85,7 +85,7 @@ def generate_aligned_and_agreement_maps( allow_benchmark_values=allow_benchmark_values, ) - agreement_map_computed.rio.set_crs(cam.rio.crs) + agreement_map_computed.rio.write_crs(cam.rio.crs, inplace=True) agreement_map_computed.rio.set_nodata(-9999) if np.nan in agreement_map_computed: diff --git a/tests/test_visualization.py b/tests/test_visualization.py index 17886ca5..3fcd592c 100644 --- a/tests/test_visualization.py +++ b/tests/test_visualization.py @@ -11,7 +11,7 @@ glob="categorical_plot_success", ) def test_categorical_plot_success(candidate_map, crs, entries): - candidate_map.rio.set_crs(crs) + candidate_map.rio.write_crs(crs, inplace=True) viz_object = candidate_map.gval.cat_plot(basemap=None) assert len(viz_object.axes.get_legend().texts) == entries