Altering the python-java jpype data conversion in AutoAnalyser to work properly with jpype 0.7 and upwards

This commit is contained in:
Joseph Lizier 2021-10-08 16:03:14 +11:00
parent f8eb84e183
commit 6f43dfb620
1 changed files with 3 additions and 3 deletions

View File

@ -937,8 +937,8 @@ public abstract class AutoAnalyser extends JFrame
}
} else {
for (int i=0; i < numVariables; i++) {
pythonCode.append(variableColNumLabels[i].toLowerCase() + " = data[:," +
singleCalcColumns[i] + "]\n");
pythonCode.append(variableColNumLabels[i].toLowerCase() + " = JArray(JDouble, 1)(data[:," +
singleCalcColumns[i] + "].tolist())\n");
}
}
pythonCode.append("\n");
@ -1134,7 +1134,7 @@ public abstract class AutoAnalyser extends JFrame
matlabCode.append(matlabPrefix + variableColNumLabels[i].toLowerCase() +
" = octaveToJavaDoubleArray(data(:, " + columnVariables[i] + "));\n");
pythonCode.append(pythonPrefix + variableColNumLabels[i].toLowerCase() +
" = data[:, " + columnVariables[i] + "]\n");
" = JArray(JDouble, 1)(data[:, " + columnVariables[i] + "].tolist())\n");
}
}
javaCode.append("\n");