Skip to content

Commit

Permalink
Accept lambda as independent variable in csv files
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel committed Mar 30, 2017
1 parent e6c4181 commit 6e6f898
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion OMPlot/OMPlotGUI/PlotWindow.cpp
Expand Up @@ -342,7 +342,12 @@ void PlotWindow::plot(PlotCurve *pPlotCurve)
double *timeVals = read_csv_dataset(csvReader, "time");
if (timeVals == NULL)
{
throw NoVariableException(tr("Variable doesnt exist: %1").arg("time").toStdString().c_str());
timeVals = read_csv_dataset(csvReader, "lambda");
if (timeVals == NULL)
{
throw NoVariableException(tr("Variable doesnt exist: %1").arg("time or lambda").toStdString().c_str());
}
setXLabel("lambda");
}

// read in all values
Expand Down

0 comments on commit 6e6f898

Please sign in to comment.