From 642d68a4494363edc1d1a388d9b2e8926cb79978 Mon Sep 17 00:00:00 2001 From: Adam Zsarnoczay <33822153+zsarnoczay@users.noreply.github.com> Date: Thu, 8 Feb 2024 10:36:51 -0800 Subject: [PATCH] azs - fix bug to save DL settings appropriately to config file --- WorkflowAppPBE.cpp | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/WorkflowAppPBE.cpp b/WorkflowAppPBE.cpp index 3283b64..32ac382 100644 --- a/WorkflowAppPBE.cpp +++ b/WorkflowAppPBE.cpp @@ -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) { @@ -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;