Skip to content

Commit

Permalink
Fix boundary masking bug for static features
Browse files Browse the repository at this point in the history
  • Loading branch information
joeloskarsson committed Dec 2, 2024
1 parent b35072d commit 29cc25b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neural_lam/models/ar_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ def __init__(
static_features_torch = torch.tensor(arr_static, dtype=torch.float32)
self.register_buffer(
"grid_static_features",
static_features_torch[self.boundary_mask[:, 0].to(torch.bool)],
static_features_torch[self.interior_mask[:, 0].to(torch.bool)],
persistent=False,
)
self.register_buffer(
"boundary_static_features",
static_features_torch[self.interior_mask[:, 0].to(torch.bool)],
static_features_torch[self.boundary_mask[:, 0].to(torch.bool)],
persistent=False,
)

Expand Down

0 comments on commit 29cc25b

Please sign in to comment.