Skip to content

Commit

Permalink
print CLEARSWI version to settings.txt;
Browse files Browse the repository at this point in the history
requires julia v1.9
  • Loading branch information
korbinian90 committed Dec 2, 2024
1 parent 8645f05 commit 9c8d7f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -18,4 +18,4 @@ ClearswiApp = "ArgParse"
ArgParse = "1"
MriResearchTools = "3.1.6"
Statistics = "1"
julia = "1.7"
julia = "1.9"
3 changes: 2 additions & 1 deletion src/utility.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9c8d7f5

Please sign in to comment.