From 073b7a9327e00b5b88bf414c007d9bd340139f51 Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Tue, 17 Dec 2024 13:56:30 +0000 Subject: [PATCH] self PR comments --- pvnet_app/data/satellite.py | 2 +- tests/data/test_satellite.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pvnet_app/data/satellite.py b/pvnet_app/data/satellite.py index 52b7e08..e3cd6c6 100644 --- a/pvnet_app/data/satellite.py +++ b/pvnet_app/data/satellite.py @@ -359,7 +359,7 @@ def check_for_constant_values(value: Optional[float] = 0, threshold: Optional[fl Note that in the UK, even at night, the values are not zero. """ # check satellite for zeros - logger.info("Checking satellite data for constant value ({value})") + logger.info(f"Checking satellite data for constant value ({value})") ds_sat = xr.open_zarr(sat_path) shape = ds_sat.data.shape n_data_points_per_timestep = shape[1] * shape[2] * shape[3] diff --git a/tests/data/test_satellite.py b/tests/data/test_satellite.py index e12a2e9..14d0ceb 100644 --- a/tests/data/test_satellite.py +++ b/tests/data/test_satellite.py @@ -265,7 +265,7 @@ def test_zeros_in_sat_data(sat_15_data_small, test_t0): def test_remove_satellite_data(sat_15_data_small, test_t0): - """Check error is made if data has zeros""" + """Check error is made if data has nans""" # make temporary directory with tempfile.TemporaryDirectory() as tmpdirname: # Change to temporary working directory