Skip to content

Commit

Permalink
Added backward compatibility path for coefficients in LMAnalysis
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudin47 committed Mar 21, 2024
1 parent 22e48bb commit b054594
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ void LinearModelResult::load(Advocate & adv)
MetaModelResult::load(adv);
adv.loadAttribute( "basis_", basis_ );
adv.loadAttribute( "design_", design_ );
adv.loadAttribute( "coefficients_", coefficients_ );
if (adv.hasAttribute("beta_"))
adv.loadAttribute("beta_", coefficients_);
else
adv.loadAttribute( "coefficients_", coefficients_ );
adv.loadAttribute( "condensedFormula_", condensedFormula_ );
adv.loadAttribute( "coefficientsNames_", coefficientsNames_ );
adv.loadAttribute( "sampleResiduals_", sampleResiduals_ );
Expand Down

0 comments on commit b054594

Please sign in to comment.