Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
OpheliaMiralles committed Dec 6, 2024
1 parent 71cf1f8 commit f8ce841
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/anemoi/graphs/nodes/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@ class AreaWeights(BaseNodeAttribute):
"""

def __new__(cls, flat: bool = False, **kwargs):
logging.warning("Creating %s with flat=%s and kwargs=%s. In a future release, AreaWeights will be deprecated: please use directly PlanarAreaWeights or SphericalAreaWeights.", cls.__name__, flat, kwargs)
logging.warning(
"Creating %s with flat=%s and kwargs=%s. In a future release, AreaWeights will be deprecated: please use directly PlanarAreaWeights or SphericalAreaWeights.",
cls.__name__,
flat,
kwargs,
)
if flat:
return PlanarAreaWeights(**kwargs)
return SphericalAreaWeights(**kwargs)
Expand Down

0 comments on commit f8ce841

Please sign in to comment.