Skip to content

Commit

Permalink
fix bug for datastore ref in ARModel.plot_examples()
Browse files Browse the repository at this point in the history
  • Loading branch information
leifdenby committed Nov 13, 2024
1 parent 258079c commit d458677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neural_lam/models/ar_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def plot_examples(self, batch, n_examples, prediction=None):
vis.plot_prediction(
pred=pred_t[:, var_i],
target=target_t[:, var_i],
datastore=self.datastore,
datastore=self._datastore,
title=f"{var_name} ({var_unit}), "
f"t={t_i} ({self._datastore.step_length * t_i} h)",
vrange=var_vrange,
Expand Down

0 comments on commit d458677

Please sign in to comment.