Skip to content

Commit

Permalink
fmk - bug fix in SpectrumRegionalSurrogate
Browse files Browse the repository at this point in the history
  • Loading branch information
fmckenna committed Jul 1, 2022
1 parent 33c4fb2 commit 0fb07b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion EVENTS/peerNGA/SpectrumFromRegionalSurrogate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,19 +637,23 @@ void SpectrumFromRegionalSurrogate::getSpectrum(void) {
destinationDirectory.mkpath(templateDirectory);
QString inputFile = templateDirectory + QDir::separator() + tr("scInput.json");

qDebug() << "INPUT FILE: " << inputFile;
QFile file(inputFile);
if (!file.open(QFile::WriteOnly | QFile::Text)) {
//errorMessage();
return;
}
/* REMOVING CRAP
QJsonObject json;
if (this->outputToJSON(json) == false) {
//this->errorMessage("WorkflowApp - failed in outputToJson");
return;
}
*/

QJsonDocument doc(configJSON);
file.write(doc.toJson());
file.close();
qDebug() << "JSON: " << configJSON;

// copy files
this->copyFiles(templateDirectory);
Expand Down

0 comments on commit 0fb07b2

Please sign in to comment.