Closed ztxtech closed 1 year ago
您好,您的邮件已收到!
elif isinstance(value, (np.floating, float)):
if math.isnan(value) or math.isinf(value):
_dict[key] = "nan"
else:
_dict[key] = float(value)
_parse_value
if isinstance(value, (int, float, str, bool)) or value is None:
if isinstance(value, float):
if math.isnan(value) or math.isinf(value):
value = "nan"
——————————————————— _check_dict_value
Thanks for pointing out this issue, would you mind send a pr to fix this?
I have sent a pr.
The pr has been merge, thx~
_parse_value and _check_dict_value need to distinguish 'nan' and 'inf'.