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

Hi!,

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.

afbeelding


afbeelding

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