Skip to content

Commit

Permalink
fix issue with omitnans in symbolic expressions (to use 'max' in prpe…
Browse files Browse the repository at this point in the history
…nsity functions.
  • Loading branch information
Munsky committed Nov 15, 2024
1 parent f8a30f2 commit 2752aaa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/+ssit/@Propensity/Propensity.m
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,14 @@
exprStr = char(symbolicExpression);

% Get rid of max rules.
exprStr = char(strrep(exprStr,", [], 2, 'omitnan', false",""));
k = strfind(exprStr,', ''omitnan');
if ~isempty(k)
exprStr = [exprStr(1:k-1),')'];
end

% exprStr = char(strrep(exprStr,", [], 2, 'omitnan', false",""));



opVar = {'*','/','^'};
for i = 1:length(opVar)
Expand Down

0 comments on commit 2752aaa

Please sign in to comment.