Skip to content
Snippets Groups Projects
Commit 706be9ee authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

simplify condition for computing m_exp_data

parent abb01365
No related branches found
No related tags found
1 merge request!1965SimDataPair: keep uncertainties in experimental data instead of separate Datafield (#737a)
......@@ -100,8 +100,10 @@ void SimDataPair::execSimulation(const mumufit::Parameters& params)
m_sim_data = std::make_unique<Datafield>(simulation->simulate());
ASSERT(!m_sim_data->empty());
if (m_exp_data && !m_exp_data->empty() && m_uncertainties && !m_uncertainties->empty())
if (m_exp_data) {
ASSERT(!m_exp_data->empty());
return;
}
auto* const sim2d = dynamic_cast<ScatteringSimulation*>(simulation.get());
if (sim2d)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment