Issue with DataResult; Out of range float values are not JSON compliant


We’re having some strange and random issues with DataResult. It happens on the last step when the frontend try to build the result for a given DataGroup. We haven’t been able to debug this one because it only occurs on random occasions and at the last step where to don’t have access to the source code.



Any idea?

Could it be that there is a ‘nan’ within one of the DataItems?

I tried converting all values of the dataitems to a float before constructing it. So I would say that a ‘nan’ getting into the dataitem would be excluded or would give a TypeError on our side.

Be aware that float(math.nan) is still nan