Skip to content

Commit

Permalink
log all figures in one call
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenhaute committed Jul 22, 2024
1 parent 20f20ee commit 7d72345
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions psiflow/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,10 @@ def _to_wandb(
figure.update_layout(yaxis_title="<b>forces RMSE [meV/atom]</b>")
figure.update_layout(xaxis_title="<b>" + x_axis + "</b>")
figures[title] = figure
path_wandb = Path(tempfile.mkdtemp())
wandb.init(id=wandb_id, dir=path_wandb, project=wandb_project, resume="allow")
wandb.log(figures)
wandb.finish()
path_wandb = Path(tempfile.mkdtemp())
wandb.init(id=wandb_id, dir=path_wandb, project=wandb_project, resume="allow")
wandb.log(figures)
wandb.finish()
return None


Expand Down

0 comments on commit 7d72345

Please sign in to comment.