gee-community / geetools

A collection of tools to work with Google Earth Engine Python API
https://geetools.readthedocs.io/en/stable/
MIT License
504 stars 121 forks source link

move all test from data_regression to num_regression #180

Closed 12rambau closed 5 months ago

12rambau commented 5 months ago

Earth engine is not always exporting results with the same rounded value (we are talking about the 10th decimal). This makes most of the tests very fragile.

I realized that pytest-regression is equipped with a num_regression fixture that is dedicted to compare numerical value with a default tolerance set to e-8 which would make the test more stable.

It can safely be used on every image regressions as we compute a reducer to get the datas.

nice side effect: it will reduce the size of the repository as csv are lighter than yml files.