Skip to content

Commit

Permalink
remove step_legnth attr in ARModel
Browse files Browse the repository at this point in the history
  • Loading branch information
leifdenby committed Oct 1, 2024
1 parent 9fcf06e commit 2bbe666
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions neural_lam/models/ar_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ def __init__(
"interior_mask", 1.0 - self.boundary_mask, persistent=False
) # (num_grid_nodes, 1), 1 for non-border

# Number of hours per pred. step
self.step_length = datastore.step_length
self.val_metrics = {
"mse": [],
}
Expand Down Expand Up @@ -457,7 +455,7 @@ def plot_examples(self, batch, n_examples, prediction=None):
obs_mask=self.interior_mask[:, 0],
datastore=self.datastore,
title=f"{var_name} ({var_unit}), "
f"t={t_i} ({self.step_length * t_i} h)",
f"t={t_i} ({self._datastore.step_length * t_i} h)",
vrange=var_vrange,
)
for var_i, (var_name, var_unit, var_vrange) in enumerate(
Expand Down

0 comments on commit 2bbe666

Please sign in to comment.