Optimiser: Parsing of expressions
I added the new function infNormRadialPeak
. However, it's not recognized. It crashes with Parsing failed!
. I do not see a difference to other expressions.
According to line 180 it checks
if (success && iter != end) {
std::cout << "Parsing failed!" << std::endl;
throw new OptPilotException("Expression::parse()",
"Parsing failed!");
}
I think it should be !success
and ìter == end
instead. A first test confirms my proposal, i.e. it still works with
e.g. sumErrSqRadialPeak
but now also with infNormRadialPeak
.
Edited by frey_m