From ec8d384e43170b01ff39d9d538f8e37d0b707597 Mon Sep 17 00:00:00 2001 From: TatianaBurek Date: Fri, 17 Nov 2023 12:19:16 -0700 Subject: [PATCH] Add summary_curve parameter to ROC YAML #506 --- java/edu/ucar/metviewer/jobManager/RocJobManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/java/edu/ucar/metviewer/jobManager/RocJobManager.java b/java/edu/ucar/metviewer/jobManager/RocJobManager.java index 004a87b6..4efe91f9 100644 --- a/java/edu/ucar/metviewer/jobManager/RocJobManager.java +++ b/java/edu/ucar/metviewer/jobManager/RocJobManager.java @@ -87,6 +87,11 @@ protected void run(MVPlotJob job) throws ParseException, ValidationException, IO yamlInfo.put("roc_ctc", job.getRocCtc()); yamlInfo.put("add_point_thresholds", job.getAddPointThresholds() ? "True" : "False"); yamlInfo.put("reverse_connection_order", job.getReverseConnectionOrder() ? "True" : "False"); + if(job.getSummaryCurve().isEmpty()){ + yamlInfo.put("summary_curve", "none"); + }else { + yamlInfo.put("summary_curve", job.getSummaryCurve().get(0)); + } job.setPlotTmpl(this.getPythonScript()); yamlInfo = this.addPlotConfigs(yamlInfo, job, intNumDepSeries); rscriptStatManager.runPythonScript(job, yamlInfo);