epfl-dlab / GoogleTrendsAnchorBank

Google Trends, made easy.
MIT License
101 stars 22 forks source link

Modify inconsistent scaling for queries. #27

Open mpanaggio opened 1 year ago

mpanaggio commented 1 year ago

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: https://github.com/epfl-dlab/GoogleTrendsAnchorBank/blob/db69456f4a8312639c6d7bd6229cab7edb543310/gtab/core.py#L1008

I believe this line should read: if max_query >= thresh and max_anchor >=max_query.