Fix task model

This commit is contained in:
Alexander Nozik 2017-08-23 22:29:29 +03:00
parent f8539364d9
commit 50e2c00b7f

View File

@ -58,7 +58,7 @@ public class NumassTableFilterTask extends SingleActionTask<Table, Table> {
double uHi = inputMeta.getDouble("to", Double.POSITIVE_INFINITY); double uHi = inputMeta.getDouble("to", Double.POSITIVE_INFINITY);
getLogger(inputMeta).debug("Filtering finished"); getLogger(inputMeta).debug("Filtering finished");
return TableTransform.filter(input, "Uset", uLo, uHi); return TableTransform.filter(input, "Uset", uLo, uHi);
} else if (inputMeta.hasValue("filter.condition")) { } else if (inputMeta.hasValue("condition")) {
Predicate<Values> predicate = (dp) -> ExpressionUtils.condition(inputMeta.getString("condition"), unbox(dp)); Predicate<Values> predicate = (dp) -> ExpressionUtils.condition(inputMeta.getString("condition"), unbox(dp));
return TableTransform.filter(input, predicate); return TableTransform.filter(input, predicate);
} else { } else {