From d986edf86e45376309cc6f7f91926287e4962607 Mon Sep 17 00:00:00 2001 From: Marnix Kraus Date: Tue, 19 Dec 2023 11:44:36 +0100 Subject: [PATCH] Fix documentation --- core/src/main.jl | 2 +- docs/python/examples.ipynb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main.jl b/core/src/main.jl index d41b9112a..f34bda09b 100644 --- a/core/src/main.jl +++ b/core/src/main.jl @@ -4,7 +4,7 @@ function help(x::AbstractString)::Cint return 1 end -function main(ARGS::Vector{AbstractString})::Cint +function main(ARGS::Vector{String})::Cint n = length(ARGS) if n != 1 return help("Exactly 1 argument expected, got $n") diff --git a/docs/python/examples.ipynb b/docs/python/examples.ipynb index 4e00ab232..c31dbd087 100644 --- a/docs/python/examples.ipynb +++ b/docs/python/examples.ipynb @@ -576,7 +576,7 @@ " \"julia\",\n", " \"--project=../../core\",\n", " \"--eval\",\n", - " f'using Ribasim; Ribasim.run(\"{datadir.as_posix()}/basic_transient/ribasim.toml\")',\n", + " f'using Ribasim; Ribasim.main([\"{datadir.as_posix()}/basic_transient/ribasim.toml\"])',\n", " ],\n", " check=True,\n", ")" @@ -968,7 +968,7 @@ " \"julia\",\n", " \"--project=../../core\",\n", " \"--eval\",\n", - " f'using Ribasim; Ribasim.run(\"{datadir.as_posix()}/level_setpoint_with_minmax/ribasim.toml\")',\n", + " f'using Ribasim; Ribasim.main([\"{datadir.as_posix()}/level_setpoint_with_minmax/ribasim.toml\"])',\n", " ],\n", " check=True,\n", ")" @@ -1390,7 +1390,7 @@ " \"julia\",\n", " \"--project=../../core\",\n", " \"--eval\",\n", - " f'using Ribasim; Ribasim.run(\"{datadir.as_posix()}/pid_control/ribasim.toml\")',\n", + " f'using Ribasim; Ribasim.main([\"{datadir.as_posix()}/pid_control/ribasim.toml\"])',\n", " ],\n", " check=True,\n", ")" @@ -1849,7 +1849,7 @@ " \"julia\",\n", " \"--project=../../core\",\n", " \"--eval\",\n", - " f'using Ribasim; Ribasim.run(\"{datadir.as_posix()}/allocation_example/ribasim.toml\")',\n", + " f'using Ribasim; Ribasim.main([\"{datadir.as_posix()}/allocation_example/ribasim.toml\"])',\n", " ],\n", " check=True,\n", ")"