You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (freezeAllGlobalObs_ && mc_bonly && mc_bonly->GetGlobalObservables()) utils::setAllConstant(*mc_bonly->GetGlobalObservables(), true);
805
805
806
806
// Setup the CascadeMinimizer with discrete nuisances
807
-
addDiscreteNuisances(w);
807
+
bool wsHasDiscretes = addDiscreteNuisances(w);
808
+
809
+
// Add a check that we're not trying to use discrete profiling with Bayesian methods
810
+
if ((algo->name() == "BayesianSimple" || algo->name() == "MarkovChainMC") && wsHasDiscretes){
811
+
throwstd::invalid_argument("Cannot currently use discrete parameters with Bayesian methods. Either remove discrete parameters or remove runtime def option ADD_DISCRETE_FALLBACK");
0 commit comments