Skip to content

Missing exception in chunk_dataset() #1159

@gunbra32

Description

@gunbra32

Describe the bug
chunk_dataset() has a parameter 'format' with the two valid options "zarr" and "netcdf4", which determines the encoding of the data variables to be chunked for the target file format. This works fine for the two possible values of the parameter but the function does not update the encoding at all, if parameter value has any other arbitrary value.

To Reproduce
Just use chunk_dataset() with any invalid value for the format parameter.
Image

Expected behavior
If an invalid parameter value is used for format, an instructive exception would be expected.
Screenshots
see above.
Additional context

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions