Skip to content

Commit

Permalink
Do not hard-code macro string used in applying constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Harries committed Dec 19, 2016
1 parent 9486017 commit f708418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meta/Constraint.m
Expand Up @@ -179,7 +179,7 @@
Quit[1];
];

ApplyConstraints[settings_List] :=
ApplyConstraints[settings_List, modelName_String:"MODEL"] :=
Module[{result, noMacros, noTemp},
noMacros = DeleteCases[
settings,
Expand All @@ -195,7 +195,7 @@
result = Parameters`CreateLocalConstRefs[(#[[2]])& /@ noMacros];
result = result <> AddBetas[noMacros];
result = result <> "\n";
(result = result <> ApplyConstraint[#, "MODEL"])& /@ noTemp;
(result = result <> ApplyConstraint[#, modelName])& /@ noTemp;
Return[result];
];

Expand Down

0 comments on commit f708418

Please sign in to comment.