Skip to content

Commit

Permalink
Merge pull request #35 from trahflow/fix-ongoing-run-warning
Browse files Browse the repository at this point in the history
Fix python <--> julia string comparison in ongoing run warning
  • Loading branch information
avik-pal authored Apr 27, 2024
2 parents 5562fbd + db29485 commit a303a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function WandbLogger(; project, name=nothing, min_level=Info, step_increment=1,
else
wrun = wandb.init(; project, name, config, kwargs...)
end
if !isnothing(name) && wrun.name != name
if !isnothing(name) && string(wrun.name) != name
@warn "There is an ongoing wandb run. Please `close` the run before initializing a \
new one."
end
Expand Down

0 comments on commit a303a96

Please sign in to comment.