We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b03015 commit 4ca52acCopy full SHA for 4ca52ac
1 file changed
src/settings.jl
@@ -40,9 +40,13 @@ end
40
solver_settings::SolverSettings = SolverSettings()
41
end
42
43
-function VSMSettings(filename)
+function VSMSettings(filename; data_prefix=true)
44
# Uwe's suggested 3-line approach using StructMapping.jl (adapted)
45
- data = YAML.load_file(joinpath("data", filename))
+ if data_prefix
46
+ data = YAML.load_file(joinpath("data", filename))
47
+ else
48
+ data = YAML.load_file(filename)
49
+ end
50
51
# Use StructMapping for basic structure conversion
52
# But handle special fields manually due to enum conversion needs
@@ -110,4 +114,4 @@ function Base.show(io::IO, vsm_settings::VSMSettings)
110
114
print(io, replace(repr(wing), "\n" => "\n "))
111
115
112
116
print(io, replace(repr(vsm_settings.solver_settings), "\n" => "\n "))
113
-end
117
+end
0 commit comments