Without an analysis name the save code wouldn't save anything. This
also throws an error message when there isn't an analysis name.
And as a hack one can put a filename in the analysis name and actually
have it save to that location.
append_info << "_sp_" << i << "v" << i2;
all_comps[i][i2].save(save_path/(save_name+append_info.str()+".flp"));
}
+ } else {
+ throw mussa_error("Can't save analysis without an analysis name");
}
}
int win_size = windowLineEdit.text().toInt();
int threshold = thresholdLineEdit.text().toInt();
+ std::string name = analysisNameLineEdit.text().toStdString();
if (win_size == 0 or threshold == 0) {
throw mussa_load_error("must set analysis parameters");
} else {
+ mussa->set_name(name);
mussa->set_window(win_size);
mussa->set_threshold(threshold);
mussa->set_analysis_mode(Mussa::TransitiveNway);