message: Bugfix in UI-QT: no more nan/inf for interpolated energies when images are identical.
diff: @@ -53,10 +53,10 @@ void PlotWidget::plotEnergies()
  // Add data to series
  int noi = Chain_Get_NOI(state.get());
  + float Rx_tot = System_Get_Rx(state.get(), noi - 1);
  for (int i = 0; i < noi; ++i)
  {
  float x = 0;
  - float Rx_tot = System_Get_Rx(state.get(), noi - 1);
  if (i > 0 && Rx_tot > 0) x = System_Get_Rx(state.get(), i) / Rx_tot;
  *series_E << QPointF(x, System_Get_Energy(state.get(), i) / System_Get_NOS(state.get(), i));
  // std::cerr << System_Get_Energy(state.get(), i)/System_Get_NOS(state.get(), i) << std::endl;
  @@ -69,7 +69,6 @@ void PlotWidget::plotEnergies()
  series_E_current->clear();
  int i = System_Get_Index(state.get());
  float x = 0;
  - float Rx_tot = System_Get_Rx(state.get(), noi - 1);
  if (i > 0 && Rx_tot > 0) x = System_Get_Rx(state.get(), i) / Rx_tot;
  *series_E_current << QPointF(x, System_Get_Energy(state.get(), i) / System_Get_NOS(state.get(), i));
  chart->removeSeries(series_E_current);
  @@ -88,6 +87,7 @@ void PlotWidget::plotEnergiesInterpolated()
  // Add data to series
  int noi = Chain_Get_NOI(state.get());
  + float Rx_tot = System_Get_Rx(state.get(), noi - 1);
  int nos = System_Get_NOS(state.get());
  int size_interp = noi + (noi-1)*Parameters_Get_GNEB_N_Energy_Interpolations(state.get());
  float *Rx = new float[size_interp];
  @@ -96,7 +96,9 @@ void PlotWidget::plotEnergiesInterpolated()
  Chain_Get_Energy_Interpolated(state.get(), E);
  for (int i = 0; i < size_interp; ++i)
  {
  - *series_E_interp << QPointF(Rx[i]/Rx[size_interp-1], E[i] / nos);
  + float x = 0;
  + if (i > 0 && Rx_tot > 0) x = Rx[i] / Rx_tot;
  + *series_E_interp << QPointF(x, E[i] / nos);
  }
  // Re-add Series to chart
  