Daily updates from Odoo
Friday, November 8, 2024
1 change · master
Resolved issues and error corrections
The spreadsheet document tests were adjusted to match a recent change in how chart trend lines are calculated. This prevents unreliable test failures for an unrealistic chart setup and helps keep spreadsheet chart functionality stable.
Original PR description
Since o-spreadsheet/commit/9909fa98d data points are normalized to compute the trend line. Those 2 tests were computing a 2nd order polynomial trend line based on 2 data points only, which doesn't really makes sense. With only 2 points, the normalized labels become [0, 1]. The matrix is of the form x1 x2 x1^2 x2^2 it gives 0 1 0 1 with [0, 1] as the labels. This matrix is not invertible since the two lines are the same and the determinant is 0.