Skip to content

Commit

Permalink
Add backwards compatible method for adding input parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Harries committed Dec 8, 2016
1 parent 958a6b8 commit 0ec256c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meta/Parameters.m
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@
AddInputParameterInfo[{par_, block_, type_}] :=
allInputParameters = UpdateParameterInfo[allInputParameters, {par, block, type}];

AddInputParameterInfo[{par_, type_}] :=
allInputParameters = UpdateParameterInfo[allInputParameters, {par, {}, type}];

AddInputParameterInfo[par_] :=
AddInputParameterInfo[{par, {}, GuessInputParameterType[par]}];

Expand Down

0 comments on commit 0ec256c

Please sign in to comment.