ccpem / roodmus

GNU General Public License v3.0
3 stars 0 forks source link

Pytest fails in comparing dataframes #32

Closed MJoosten closed 4 months ago

MJoosten commented 4 months ago

The comparison of data frames loaded in the integration tests for the analysis module can fail. We found out that this seems to be caused by machine precision in reading in the .csv file into a dataframe. One solution would be to change the loading functions in analysis.utils and some of the plotting functions to automatically round the columns containing floats to a reasonable number of decimal places

MJoosten commented 4 months ago

This is fixed now, by rounding the dataframes in the analysis test to 5 digits, avoiding the machine precision problem