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