FindData as recently been docked but also lost the “query” mode that let user specify exactly how they want to select the data. Bringing back this mode would be already nice but maybe we should take thius further.
eg: How to select the points containing the max or the min values of a data array ?
This is not doable currently, but I have a few ideas how to make that doable:
- Special Keyworks
One could use
value is one of actualMinValue, actualMaxValuebut would need to know these values.
A solution could be to implement support for dedicated keywords, like min, max, med, mean. The usage would then be: value is one of min, max`
I’m not a big fan of this solution as that would be yet another “language” the user should learn and also the user would not to know about it trough documentation and tooltip only.
- Query with buttons
Bring back query, but add buttons similar to the calculator so that the creation of the query would be much more easy to the user. is that case the syntax of the actual python query would be:
value == min(value) or value == max(value)) but could be generated by clicking on buttons.
- Indentation and OR
There is already a mechanism to combine multiple selection lines with an AND.
We could let user specify if AND or OR should be used, but then, how would user specify the order or operations ? Adding two small buttons that would let the user “indent” each lines would fix that. It would look like this:
SelectionExpression1 AND - SelectionExpression2 OR - - SelectionExpression3 OR - - SelectionExpression4 AND SelectionExpression5
Would correspond to:
( SelectionExpression1 AND (SelectionExpression2 OR (SelectionExpression3 OR SelectionExpression4)) AND SelectionExpression5)
There is no solution that looks like the good solution to me, so let me know if one does or even better, If you have another idea !