Skip to content

Commit

Permalink
Enable setting of extra parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Harries committed Dec 7, 2016
1 parent 0d6eb35 commit 475217c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meta/Parameters.m
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@

SetParameter[parameter_, value_String, class_String, castToType_:None] :=
Module[{parameterStr, targetType = castToType},
If[IsModelParameter[parameter],
If[IsModelParameter[parameter] || IsExtraParameter[parameter],
parameterStr = CConversion`ToValidCSymbolString[StripIndices[parameter]];
(* if the parameter indices, we need to cast to the element type *)
If[GetIndices[parameter] =!= {} && targetType =!= None,
Expand Down

0 comments on commit 475217c

Please sign in to comment.