mirror of https://github.com/jlizier/jidt
Fixing tab/spaces mix in Python code for all combos for loops generated by AutoAnalyser calculators
This commit is contained in:
parent
6a48112818
commit
0c5bed62d6
|
|
@ -215,7 +215,7 @@ public class AutoAnalyserAIS extends AutoAnalyser {
|
|||
pythonCode.append("\n");
|
||||
pythonCode.append("# Compute for all variables:\n");
|
||||
pythonCode.append("for v in range(" + dataColumns + "):\n");
|
||||
String pythonPrefix = "\t";
|
||||
String pythonPrefix = " ";
|
||||
pythonCode.append(pythonPrefix+ "# For each variable:\n");
|
||||
// 3. Matlab code
|
||||
matlabCode.append("\n");
|
||||
|
|
|
|||
|
|
@ -191,11 +191,11 @@ public class AutoAnalyserCMI extends AutoAnalyser
|
|||
pythonCode.append("c = " + conditional + "\n");
|
||||
pythonCode.append("# Compute for all pairs:\n");
|
||||
pythonCode.append("for s in range(" + dataColumns + "):\n");
|
||||
pythonCode.append("\tfor d in range(" + dataColumns + "):\n");
|
||||
String pythonPrefix = "\t\t";
|
||||
pythonCode.append(" for d in range(" + dataColumns + "):\n");
|
||||
String pythonPrefix = " ";
|
||||
pythonCode.append(pythonPrefix+ "# For each source-dest pair (given conditional):\n");
|
||||
pythonCode.append(pythonPrefix + "if ((s == d) or (s == c) or (d == c)):\n");
|
||||
pythonCode.append(pythonPrefix + "\tcontinue\n");
|
||||
pythonCode.append(pythonPrefix + " continue\n");
|
||||
// 3. Matlab code
|
||||
matlabCode.append("\n");
|
||||
matlabCode.append("c = " + (conditional+1) + ";\n");
|
||||
|
|
|
|||
|
|
@ -216,11 +216,11 @@ public class AutoAnalyserCTE extends AutoAnalyser
|
|||
pythonCode.append("c = " + conditional + "\n");
|
||||
pythonCode.append("# Compute for all pairs:\n");
|
||||
pythonCode.append("for s in range(" + dataColumns + "):\n");
|
||||
pythonCode.append("\tfor d in range(" + dataColumns + "):\n");
|
||||
String pythonPrefix = "\t\t";
|
||||
pythonCode.append(" for d in range(" + dataColumns + "):\n");
|
||||
String pythonPrefix = " ";
|
||||
pythonCode.append(pythonPrefix+ "# For each source-dest pair (given conditional):\n");
|
||||
pythonCode.append(pythonPrefix + "if ((s == d) or (s == c) or (d == c)):\n");
|
||||
pythonCode.append(pythonPrefix + "\tcontinue\n");
|
||||
pythonCode.append(pythonPrefix + " continue\n");
|
||||
// 3. Matlab code
|
||||
matlabCode.append("\n");
|
||||
matlabCode.append("c = " + (conditional+1) + ";\n");
|
||||
|
|
|
|||
|
|
@ -99,11 +99,11 @@ public abstract class AutoAnalyserChannelCalculator extends AutoAnalyser {
|
|||
pythonCode.append("\n");
|
||||
pythonCode.append("# Compute for all pairs:\n");
|
||||
pythonCode.append("for s in range(" + dataColumns + "):\n");
|
||||
pythonCode.append("\tfor d in range(" + dataColumns + "):\n");
|
||||
String pythonPrefix = "\t\t";
|
||||
pythonCode.append(" for d in range(" + dataColumns + "):\n");
|
||||
String pythonPrefix = " ";
|
||||
pythonCode.append(pythonPrefix+ "# For each source-dest pair:\n");
|
||||
pythonCode.append(pythonPrefix + "if (s == d):\n");
|
||||
pythonCode.append(pythonPrefix + "\tcontinue\n");
|
||||
pythonCode.append(pythonPrefix + " continue\n");
|
||||
// 3. Matlab code
|
||||
matlabCode.append("\n");
|
||||
matlabCode.append("% Compute for all pairs:\n");
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ public class AutoAnalyserEntropy extends AutoAnalyser {
|
|||
pythonCode.append("\n");
|
||||
pythonCode.append("# Compute for all variables:\n");
|
||||
pythonCode.append("for v in range(" + dataColumns + "):\n");
|
||||
String pythonPrefix = "\t";
|
||||
String pythonPrefix = " ";
|
||||
pythonCode.append(pythonPrefix+ "# For each variable:\n");
|
||||
// 3. Matlab code
|
||||
matlabCode.append("\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue