From 9c8d7f510b133e2e0af212cec3ce2b0cda9696eb Mon Sep 17 00:00:00 2001 From: korbinian90 Date: Mon, 2 Dec 2024 17:22:09 +0100 Subject: [PATCH] print CLEARSWI version to settings.txt; requires julia v1.9 --- Project.toml | 4 ++-- src/utility.jl | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index efaa7bb..b65faaf 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "CLEARSWI" uuid = "06ae4d9b-ce5e-4813-a1b3-426e46312ec2" authors = ["Korbinian Eckstein"] -version = "1.3.4" +version = "1.3.5" [deps] ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63" @@ -18,4 +18,4 @@ ClearswiApp = "ArgParse" ArgParse = "1" MriResearchTools = "3.1.6" Statistics = "1" -julia = "1.7" +julia = "1.9" diff --git a/src/utility.jl b/src/utility.jl index 85dda60..4ef7103 100644 --- a/src/utility.jl +++ b/src/utility.jl @@ -73,12 +73,13 @@ end Saves the configuration in the file "settings_swi.txt" under `path` """ function saveconfiguration(options::Options, path=options.writesteps) - open(joinpath(path, "settings_swi.txt"), "w") do io + open(joinpath(path, "settings_swi.txt"), "w") do io for fname in fieldnames(typeof(options)) val = getfield(options, fname) if !(val isa AbstractArray && !(val isa Vector)) println(io, "$fname: " * string(val)) end end + println(io, "CLEARSWI.jl github version-tag: " * pkgversion(CLEARSWI)) end end