Skip to content

Commit

Permalink
self PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 17, 2024
1 parent 0d3b1ca commit 073b7a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pvnet_app/data/satellite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_satellite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 073b7a9

Please sign in to comment.