servicex.utils.clean_linq#

servicex.utils.clean_linq(q: str) str[source]#

Normalize the variables in a qastle expression. Should make the linq expression more easily comparable even if the algorithm that generates the underlying variable numbers changes. If the selection algorithm will violate the qastle syntax, it is returned unaltered and with no errors.

Arguments

q String containing the qastle code`

Returns

clean_q Sanitized query - lambda arguments are given a uniform source code

labeling so that two queries with the same structure are marked as the same.