File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -231,24 +231,25 @@ name(e::EntityName) = e.name
231231 id:: Int
232232 name:: S
233233end
234- function EntityIdName (en :: Symbol )
235- en_str = string (en )
234+ function EntityIdName (s :: Symbol )
235+ en_str = string (s )
236236 name_id_str_split = rsplit (en_str, " _" ; limit = 2 )
237237 if length (name_id_str_split) != 2
238- error (""" Failed to convert the Symbol $en to an EntityIdName. \
238+ error (""" Failed to convert the Symbol $s to an EntityIdName. \
239239 Expecting an EntityName with a name in the form of "Name_00".""" )
240240 end
241241 (name_str, id_str) = name_id_str_split
242242
243243 id_val = tryparse (Int, id_str)
244244 if isnothing (id_val)
245- error (""" Entity name ($en ) contained an underscore but the \
245+ error (""" Entity name ($s ) contained an underscore but the \
246246 content after the underscore ($id_str ) could not be parsed as \
247247 an integer to convert it to an ID.""" )
248248 end
249249
250250 return EntityIdName (id_val, string (name_str))
251251end
252+ EntityIdName {String} (s:: Symbol ) = EntityIdName (s)
252253id (e:: EntityIdName ) = e. id
253254name (e:: EntityIdName ) = e. name
254255combined_name (e:: EntityIdName ) = Symbol (" $(name (e)) _$(id (e)) " )
Original file line number Diff line number Diff line change 229229 bma_models_path = joinpath (@__DIR__ , " resources" , " bma_models" )
230230 good_models = joinpath (bma_models_path, " well_formed_examples" )
231231
232- for model_path in readdir (good_models; join = true )
232+ for model_path in filter ( ! contains ( r" Skin1D " ), readdir (good_models; join = true ) )
233233 test_json_roundtrip (model_path)
234234 end
235235 # toy_model = joinpath(
You can’t perform that action at this time.
0 commit comments