File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 44in the registry and then select them in the config.
55
66Example:
7- An implementation of the bytes codec in a class `your.module.NewBytesCodec` requires the value of `codecs.bytes`
8- to be `your.module.NewBytesCodec`.
7+ An implementation of the bytes codec in a class `` your.module.NewBytesCodec`` requires the value of `` codecs.bytes` `
8+ to be `` your.module.NewBytesCodec` `.
99
10- ``` python
10+ .. code-block:: python
1111 from your.module import NewBytesCodec
1212 from zarr.core.config import register_codec, config
1313
1414 register_codec("bytes", NewBytesCodec)
1515 config.set({"codecs.bytes": "your.module.NewBytesCodec"})
16- ```
1716
1817Donfig can be configured programmatically, by environment variables, or from YAML files in standard locations.
1918For example, to set the bytes codec via an environment variable:
2019
20+ .. code-block:: bash
2121 export ZARR_CODECS__BYTES="your.module.NewBytesCodec"
2222
2323For more information, see the Donfig documentation at https://github.com/pytroll/donfig.
You can’t perform that action at this time.
0 commit comments