File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -623,7 +623,9 @@ def test_reporting_mode_obs_llh(sbml_example_presimulation_module):
623
623
assert rdata .sy .size > 0
624
624
assert rdata .ssigmay .size > 0
625
625
assert rdata .sllh .size > 0
626
+ assert not np .isnan (rdata .sllh ).any ()
626
627
case amici .SensitivityMethod .adjoint :
627
628
assert rdata .sy is None
628
629
assert rdata .ssigmay is None
629
630
assert rdata .sllh .size > 0
631
+ assert not np .isnan (rdata .sllh ).any ()
Original file line number Diff line number Diff line change @@ -811,6 +811,7 @@ void ReturnData::applyChainRuleFactorToSimulationResults(Model const& model) {
811
811
812
812
void ReturnData::initializeObjectiveFunction (bool enable_chi2) {
813
813
if (rdata_reporting == RDataReporting::likelihood
814
+ || rdata_reporting == RDataReporting::observables_likelihood
814
815
|| rdata_reporting == RDataReporting::full) {
815
816
llh = 0.0 ;
816
817
std::fill (sllh.begin (), sllh.end (), 0.0 );
You can’t perform that action at this time.
0 commit comments