|
@@ -6,6 +6,8 @@
|
|
|
#include "dbService/EffectIndexInfoService.h"
|
|
|
#include "algorithm/GreyClusterEvaluation.h"
|
|
|
|
|
|
+#include "ProjectManager.h"
|
|
|
+
|
|
|
#include <QHeaderView>
|
|
|
#include <QDebug>
|
|
|
#include <QMessageBox>
|
|
@@ -443,8 +445,12 @@ void GreyClusteringSampleTable::initClusteringItems()
|
|
|
item.value->leftExtension = effInfo->extendLeft.toDouble();
|
|
|
item.value->rightExtension = effInfo->extendRight.toDouble();
|
|
|
//[0:0],[0:0],[0:0]
|
|
|
- QStringList valueList = effInfo->effectIndexValue.split(",");
|
|
|
- int align = qMin(valueList.size(), item.value->greyRanges.size());
|
|
|
+ QStringList valueList;
|
|
|
+ if (effInfo->effectIndexValue.length() > 0) {
|
|
|
+ valueList = effInfo->effectIndexValue.split(",");
|
|
|
+ }
|
|
|
+
|
|
|
+ int align = qMin(valueList.size(), item.value->greyRanges.size());
|
|
|
for (int str = 0; str < align; str++) {
|
|
|
//[0:0]
|
|
|
QStringList lr = valueList.at(str).mid(1, valueList.at(str).size() - 2).split(":");
|
|
@@ -457,7 +463,7 @@ void GreyClusteringSampleTable::initClusteringItems()
|
|
|
}
|
|
|
|
|
|
qDeleteAll(effectIndexInfoList);
|
|
|
- if (projectid == 113) {
|
|
|
+ if (projectid == kDemoProjId1) {
|
|
|
QVector<double> left = { 2, 35, 2, 90, 2.5, 35, 70, 2.5, 35, 30, 2.5, 70, 25, 2, 50, 1, 45, 8, 60, 1 };
|
|
|
|
|
|
QVector<double> right = { 4, 20, 3, 40, 0.5, 55, 90, 1.2, 55, 70, 1.2, 90, 60, 6, 20, 3, 75, 25, 25, 3 };
|