From 3e88cd9ec2fee67d834a5043d9e9be521ea42902 Mon Sep 17 00:00:00 2001 From: Romain Hugonnet Date: Tue, 12 Nov 2024 21:55:25 -0800 Subject: [PATCH] Pin random state for `test_estimate_uncertainty` (#647) --- tests/test_dem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_dem.py b/tests/test_dem.py index 536e5d3d..c6baa303 100644 --- a/tests/test_dem.py +++ b/tests/test_dem.py @@ -392,7 +392,7 @@ def test_estimate_uncertainty(self) -> None: dem_ref = DEM(fn_ref) dem_tba = DEM(fn_tba) - sig_h, corr_sig = dem_tba.estimate_uncertainty(dem_ref) + sig_h, corr_sig = dem_tba.estimate_uncertainty(dem_ref, random_state=42) assert isinstance(sig_h, gu.Raster) assert callable(corr_sig)