You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Areas are defined with the coordinates of the first corner (top left: area_x1, area_y1) and the coordinates of the opposite corner (bottom right: area_x2, area_y2). Besides the width and height of the area are calculated and provided in the downloadable json file (area_width and area_height).
The height of the rectangle area area_height is well calculated according to the rectangle in the thread, but if you try to get that result with area_y2) - area_y1` it results in a wrong number.
I've looked in the 4 years old compilation of threads of colorcorrupcion and the behavior does not seem to follow a recognizable pattern or a correlation with date, month, year, size of newspaper. There are buggy area_y2 in all the newspapers, dates and topics.
In the column diff we show the difference between the calculated by Ruby height area_height and the calculated with the raw json file data height_new: height_new - area_height. The area_height seems to be correct when looking graphically in a thread.
And now looking at the relationship height_new /area_height I see a pattern around numbers 1, 2, 3 and 4, being stronger at 2, where the expected behaviour would be to see all 1:
Which could be the reason for that?? what is the calculation artifact that generates this?
I replicated the analysis with the width area_x2 and though there are differences among the calculated width and the one in the raw json areas export file, it is not that important.
Looking for the pattern to find where the problem is in the generated json. Not all areas are affected.
area_y2: ha.areas.first.y2,
https://github.com/montera34/pageonex/blob/master/app/models/threadx.rb#L315
The text was updated successfully, but these errors were encountered: