Skip to content

Commit

Permalink
fix: use %s-string
Browse files Browse the repository at this point in the history
  • Loading branch information
JPXKQX committed Nov 22, 2024
1 parent b6decc4 commit 7810109
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/anemoi/graphs/nodes/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7810109

Please sign in to comment.