Closed shenghuanjie closed 5 years ago
This is caused by the following lines in main/MacroHandler.java
for(int iMetric=0;iMetric<metricThold_radios.length;iMetric++){
start=arg.indexOf("metricthold"+(iMetric+1)+"=");
if(start==-1){
metricThold_radios[iMetric] = DEFAULT_CHOICE;
}else{
start += (("metricTholds"+(iMetric+1)+"=").length());
end=arg.indexOf(" ", start);
if ((arg.charAt(start)+"").equals("[")){
start++;
end=arg.indexOf("]", start);
}
String thisThold = arg.substring(start, end);
metricThold_radios[iMetric] = (int)parseDouble(thisThold);
}
if(metricThold_radios[iMetric]==BasicCalculator.THOLD_FT)
iFTs+=allFT_spins.length;
}
Here start += (("metricTholds"+(iMetric+1)+"=").length());
should read start += (("metricthold"+(iMetric+1)+"=").length());
TOS is returning NaN, and MCC is returning values of 1 when a macro is used, while the other metrics are fine (even when using a threshold with them). I've figured out that the error is caused by the run function of the macro, so the attached macro which just runs EzColocalization on the example images has the problem.