v0.4.6: UniSaver: Adding graceful handling for NaN when saving to json or jsonl
^title
this should not produce a file containing NaN
anymore:
import numpy as np
test_dict = [{
"id": 1,
"name": "Alice",
"age": None, # Contains a None value
"height": float('nan'),
"weight": np.nan,
}]
ub.saves(test_dict, "test_invalid_values2.jsonl") # shouldn't contain "NaN" in the output file