Skip to content

Commit

Permalink
apply time-indexing to support ar_steps_val > 1
Browse files Browse the repository at this point in the history
  • Loading branch information
leifdenby committed Nov 29, 2024
1 parent 85160ce commit 52c4528
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions neural_lam/models/ar_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,11 @@ def plot_examples(self, batch, n_examples, split, prediction=None):
f"t={t_i} ({self._datastore.step_length * t_i} h)",
vrange=var_vrange,
da_prediction=da_prediction.isel(
state_feature=var_i
state_feature=var_i, time=t_i - 1
).squeeze(),
da_target=da_target.isel(
state_feature=var_i, time=t_i - 1
).squeeze(),
da_target=da_target.isel(state_feature=var_i).squeeze(),
)
for var_i, (var_name, var_unit, var_vrange) in enumerate(
zip(
Expand Down

0 comments on commit 52c4528

Please sign in to comment.