New queries can have inconsistent scaling (they are not on the same absolute scale) when max_query and max_anchor are both above the threshold:
|
if max_query >= thresh and max_anchor >= thresh: |
I believe this line should read: if max_query >= thresh and max_anchor >=max_query.