From 78101099ed9b3cf4bc890474a8018433d192e1f1 Mon Sep 17 00:00:00 2001 From: Mario Santa Cruz Date: Fri, 22 Nov 2024 13:34:34 +0000 Subject: [PATCH] fix: use %s-string --- src/anemoi/graphs/nodes/attributes.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/anemoi/graphs/nodes/attributes.py b/src/anemoi/graphs/nodes/attributes.py index 41ea98f..fe71e20 100644 --- a/src/anemoi/graphs/nodes/attributes.py +++ b/src/anemoi/graphs/nodes/attributes.py @@ -154,7 +154,11 @@ def get_raw_values(self, nodes: NodeStorage, **kwargs) -> np.ndarray: area_weights = sv.calculate_areas() if (null_nodes := mask.sum()) > 0: LOGGER.warning( - f"{self.__class__.__name__} is filling {null_nodes} ({100*null_nodes/len(mask):.2f}%) nodes with value {self.fill_value}." + "%s is filling %d (%.2f%%) nodes with value %f", + self.__class__.__name__, + null_nodes, + 100 * null_nodes / len(mask), + self.fill_value, ) result = np.ones(points.shape[0]) * self.fill_value result[mask] = area_weights