Skip to content

Commit

Permalink
Merge pull request #60 from zsarnoczay/master
Browse files Browse the repository at this point in the history
azs - fix bug to save DL settings appropriately to config file
  • Loading branch information
fmckenna authored Feb 8, 2024
2 parents 0b98848 + 642d68a commit d60b476
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions WorkflowAppPBE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,15 @@ WorkflowAppPBE::outputToJSON(QJsonObject &jsonObjectTop) {
return result;
}

QJsonObject jsonLossModel;
if (theDLModelSelection->outputToJSON(jsonLossModel) == false) {
if (theDLModelSelection->outputToJSON(jsonObjectTop) == false) {
qDebug() << "WorkflowAppPBE::outputToJSON - DL_Selection failed";
return false;
}

jsonObjectTop["DL"] = jsonLossModel;

if (theDLModelSelection->outputAppDataToJSON(apps) == false) {
qDebug() << "WorkflowAppPBE::outputToJSON - DL_Selection failed appData";
return false;
}

QJsonObject appPrf;
if (thePrfMethodSelection->outputToJSON(appPrf) == false) {
Expand All @@ -352,16 +354,7 @@ WorkflowAppPBE::outputToJSON(QJsonObject &jsonObjectTop) {
jsonObjectTop["Performance"] = prfFinal;

prfFinal["ApplicationData"] = dataPrf["Performance"];
apps["Performance"] = prfFinal;


QJsonObject appsDL;
if (theDLModelSelection->outputAppDataToJSON(appsDL) == false) {
qDebug() << "WorkflowAppPBE::outputToJSON - DL_Selection failed appData";
return false;
}

apps["DL"] = appsDL;
apps["Performance"] = prfFinal;

jsonObjectTop["Applications"]=apps;

Expand Down

0 comments on commit d60b476

Please sign in to comment.