From 5e77b8fc0beb8f0a4bc31af4f3e8a754c1492883 Mon Sep 17 00:00:00 2001 From: "J. Michelle Hu" <43484205+jmichellehu@users.noreply.github.com> Date: Tue, 22 Sep 2026 13:47:02 -0600 Subject: [PATCH] Tests - hrrr, lakes - correct path bug input to compare_netcdf_files Call sites input absolute path and overrides output_dir path. Skips gold comparison of hrrr_solar.nc/solar_k.nc. Replace with filename to compare correct source and output files. --- smrf/tests/data/hrrr/test_hrrr.py | 4 ++-- smrf/tests/test_lakes.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/smrf/tests/data/hrrr/test_hrrr.py b/smrf/tests/data/hrrr/test_hrrr.py index c4784a3d..c5232722 100644 --- a/smrf/tests/data/hrrr/test_hrrr.py +++ b/smrf/tests/data/hrrr/test_hrrr.py @@ -86,8 +86,8 @@ def test_load_without_vegetation(self): with nc.Dataset(self.output_dir.joinpath("net_solar.nc")) as test: self.compare_file_variables(gold, test) - self.compare_netcdf_files(self.gold_dir.joinpath("hrrr_solar.nc")) - self.compare_netcdf_files(self.gold_dir.joinpath("solar_k.nc")) + self.compare_netcdf_files("hrrr_solar.nc") + self.compare_netcdf_files("solar_k.nc") def test_load_with_vegetation(self): config = self.base_config_copy() diff --git a/smrf/tests/test_lakes.py b/smrf/tests/test_lakes.py index 6fbb85f1..6eeaad44 100644 --- a/smrf/tests/test_lakes.py +++ b/smrf/tests/test_lakes.py @@ -38,4 +38,4 @@ def test_run(self): with nc.Dataset(self.output_dir.joinpath("net_solar.nc")) as test: self.compare_file_variables(gold, test) - self.compare_netcdf_files(self.gold_dir.joinpath("hrrr_solar.nc")) + self.compare_netcdf_files("hrrr_solar.nc")