Skip to content

Commit

Permalink
fix typo (missing datastore) in ARModel.on_test_epoch_end
Browse files Browse the repository at this point in the history
  • Loading branch information
leifdenby committed Nov 13, 2024
1 parent f97719b commit df4d39c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neural_lam/models/ar_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,8 @@ def on_test_epoch_end(self):
vis.plot_spatial_error(
error=loss_map,
datastore=self._datastore,
title=f"Test loss, t={t_i} ({self.step_length * t_i} h)",
title=f"Test loss, t={t_i} "
f"({self._datastore.step_length * t_i} h)",
)
for t_i, loss_map in zip(
self.args.val_steps_to_log, mean_spatial_loss
Expand Down

0 comments on commit df4d39c

Please sign in to comment.