When a result is returned containing binary wavefunction data (e.g., AtomicResult with a c0 file from TeraChem) and you try to save the result using the usual method:
result = AtomicResult(...)
with open("data.json" , "w) as f:
f.write(result.json())
the serialization fails because there is no binary representation in json.
Perhaps leave the data in b64? This seems more problematic for end users because they'll have to know to serialize and deserialize the result... Or add in a serialization for binary data... Or something...
When a result is returned containing binary wavefunction data (e.g.,
AtomicResult
with ac0
file from TeraChem) and you try to save the result using the usual method:the serialization fails because there is no binary representation in json.
Perhaps leave the data in
b64
? This seems more problematic for end users because they'll have to know to serialize and deserialize the result... Or add in a serialization for binary data... Or something...