Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Update src/anemoi/models/preprocessing/imputer.py
Browse files Browse the repository at this point in the history
Co-authored-by: Harrison Cook <[email protected]>
  • Loading branch information
JesperDramsch and HCookie authored Nov 8, 2024
1 parent d749069 commit 72be86f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anemoi/models/preprocessing/imputer.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def transform(self, x: torch.Tensor, in_place: bool = True) -> torch.Tensor:
if not self.training:
self.nan_locations = None

# Initilialize mask if not cached.
# Initialise mask if not cached.
if self.nan_locations is None:
# The mask is only saved for the last two dimensions (grid, variable)
idx = [slice(0, 1)] * (x.ndim - 2) + [slice(None), slice(None)]
Expand Down

0 comments on commit 72be86f

Please sign in to comment.