In the upgrade cost module many transformer values get initialized with np.nan. I don't think this is a good idea because many of these values end up getting serialized to JSON files. I don't think that NaN is valid JSON. I think you should use Python None which will get serialized to null. Alternatively, you could write a custom JSON encoder to translate them for you.
In the upgrade cost module many transformer values get initialized with
np.nan
. I don't think this is a good idea because many of these values end up getting serialized to JSON files. I don't think thatNaN
is valid JSON. I think you should use PythonNone
which will get serialized tonull
. Alternatively, you could write a custom JSON encoder to translate them for you.