Skip to content

Commit

Permalink
fix: avoid ruff linter error EM101
Browse files Browse the repository at this point in the history
  • Loading branch information
JPXKQX committed Oct 18, 2024
1 parent 331317c commit 2fa1d5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/anemoi/training/utils/masks.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ class BaseMask:

@abstractmethod
def apply(self, x: torch.Tensor, *args, **kwargs) -> torch.Tensor:
raise NotImplementedError("Method `apply` must be implemented in subclass.")
error_message = "Method `apply` must be implemented in subclass."
raise NotImplementedError(error_message)

@abstractmethod
def rollout_boundary(self, x: torch.Tensor, *args, **kwargs) -> torch.Tensor:
raise NotImplementedError("Method `rollout_boundary` must be implemented in subclass.")
error_message = "Method `rollout_boundary` must be implemented in subclass."
raise NotImplementedError(error_message)


class Boolean1DMask(BaseMask):
Expand Down

0 comments on commit 2fa1d5c

Please sign in to comment.