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
It seems scaling_factor_x and scaling_factor_y are calculated before x_pixels and y_pixels are defined, causing errors. Moving definitions of x_pixels and y_pixels earlier in the code should fix it.