Hello!
I have a script that I can get to work perfectly fine if I just use the "Run Script" button in the script window but if I open the debugger and use the "Run" button I get an error message.
The message says "Subscripting a list with one element list or matrix "flag" is now a list not a scalar.
The line of the script it is refering to is in bold below:
flag = loc(-5<=CalcMassesFromPeak<=5);
// Show(flag);
y= NRow(flag);
WellLookup = ESIOligoInfo["WellIDs"];
if(y!=0,FlaggedWells = WellLookup[flag],FlaggedWells = "");
I don't think there is anything wrong with the script because it runs fine when I don't use the debugger. I just don't know what is going on!
I attached the whole script in case it helps.