Uh oh!
There was an error while loading. Please reload this page.
JSON -> dict[str, JSON] - #1913
Conversation
normanrz
commented
May 26, 2024
We could also rename these functions to |
d-v-b
commented
May 26, 2024
It's true that
at least to me, |
normanrz
commented
May 26, 2024
Not sure I understand what you mean with isomorphic. In the end a list needs to be put in the zarr.json file and that is what |
By "isomorphic" I mean "has the same structure". Typically, the classes that inherit from @dataclass(frozen=True)classBatchedCodecPipeline(CodecPipeline):
array_array_codecs: tuple[ArrayArrayCodec, ...]
array_bytes_codec: ArrayBytesCodecbytes_bytes_codecs: tuple[BytesBytesCodec, ...]
batch_size: intI would expect I think if |
normanrz
commented
May 26, 2024
Got it. I don't think there is any use in producing an output like in your JSON snippet. I wouldn't mind renaming the methods to |
d-v-b
commented
May 26, 2024
It might be fine to not inherit from |
d-v-b
commented
May 14, 2026
closing this. we still need to fix the |
Some functions that return
dict[str, JSON]were mistakenly annotated as returningJSON.One wrinkle to this PR is the
BatchedCodecPipelineclass, wherefrom_dicttakes a list, andto_dictreturns a list. In this PR, I annotated those methods as if they worked with dicts, which doesn't match the current runtime behavior. I think either the method name or the return type should change here, but I'm not sure which one. @normanrz any ideas?