From 9e6bfccc8a4206d229fca861a24298e9abb61cef Mon Sep 17 00:00:00 2001 From: Romeo Valentin Date: Tue, 2 Sep 2025 16:55:08 +0200 Subject: [PATCH] Fix updaterun API syntax in tutorial and examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes incorrect positional argument usage and string type for status parameter. The updaterun function requires keyword arguments and RunStatus enum values. Before: updaterun(mlf, exprun, "FINISHED") After: updaterun(mlf, exprun; status=RunStatus.FINISHED) Fixes #64 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- docs/src/tutorial.md | 2 +- examples/simple-with-mlflow.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/tutorial.md b/docs/src/tutorial.md index d7565c3..9ca7c1d 100644 --- a/docs/src/tutorial.md +++ b/docs/src/tutorial.md @@ -109,7 +109,7 @@ logartifact(mlf, exprun, plotfilename) rm(plotfilename) # complete the experiment -updaterun(mlf, exprun, "FINISHED") +updaterun(mlf, exprun; status=RunStatus.FINISHED) ``` This will result in the folowing experiment created in your `MLFlow` which is running on `http://localhost/`: diff --git a/examples/simple-with-mlflow.jl b/examples/simple-with-mlflow.jl index 13990f0..1f14910 100644 --- a/examples/simple-with-mlflow.jl +++ b/examples/simple-with-mlflow.jl @@ -58,4 +58,4 @@ logartifact(mlf, exprun, plotfilename) rm(plotfilename) # complete the experiment -updaterun(mlf, exprun, "FINISHED") +updaterun(mlf, exprun; status=RunStatus.FINISHED)