So this is based on many assumptions that I am too lazy to validate :) but it seems plausible to me and it fixes an issue:
If a .zarray of a variable is retrieved, a pure dict is returned. I am not sure what fastapi is doing with that, but obviously, the return is a JSON. If a compressor is set, I guess the __dict__ representation of it is used.
The problem is, there is a difference between cd and cc, defined as:
So this is based on many assumptions that I am too lazy to validate :) but it seems plausible to me and it fixes an issue:
If a .zarray of a variable is retrieved, a pure
dict
is returned. I am not sure what fastapi is doing with that, but obviously, the return is a JSON. If a compressor is set, I guess the__dict__
representation of it is used.The problem is, there is a difference between
cd
andcc
, defined as:I assume that we want to have
cc
because it contains aid
keyword. Without this, it is not clear that blosc was actually used.