You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
value = eval(Meta.parse("$(file_key)_meta"))[data]
155
+
for problem in LIST_OF_PROBLEMS
156
+
METADATA_STORAGE[problem] = OrderedDict()
157
+
for (data, T) in zip(METADATA_INFOS, METADATA_TYPES)
158
+
value = eval(Meta.parse("$(problem)_meta"))[data]
138
159
if!(value isa T)
139
160
error("Type mismatch: Expected $(T) for $(data), but got $(typeof(value))")
140
161
end
141
-
metadata_storage[file_key][data] = value
162
+
METADATA_STORAGE[problem][data] = value
142
163
end
143
164
end
144
165
@@ -153,7 +174,7 @@ Return the dictionary containing the metadata of all available optimal control p
153
174
julia> metadata()
154
175
```
155
176
"""
156
-
metadata() =metadata_storage
177
+
metadata() =METADATA_STORAGE
157
178
158
179
"""
159
180
$(TYPEDSIGNATURES)
@@ -189,8 +210,8 @@ julia> data[:grid_size]
189
210
```
190
211
"""
191
212
function metadata(problem::Symbol)
192
-
!(problem ∈ keys(metadata_storage)) && throw(CTBase.IncorrectArgument("There is no problem named $problem in metadata. To get the list of available problems, make julia> metadata()"))
193
-
returnmetadata_storage[problem]
213
+
!(problem ∈ keys(METADATA_STORAGE)) && throw(CTBase.IncorrectArgument("There is no problem named $problem in metadata. To get the list of available problems, make julia> metadata()"))
0 commit comments