bcdev / nc2zarr

A Python tool that converts NetCDF files to Zarr format
MIT License
9 stars 3 forks source link

TypeError: 'int' object is not iterable #23

Closed forman closed 3 years ago

forman commented 3 years ago

Exception TypeError: 'int' object is not iterable is raised under certain conditions

  1. process/rechunk given in configuration.
  2. a variable has not been configured or configured to use chunks from input.
  3. the input has only a single chunk value in some dimension

Reason is that max is called with single int arg in this case: max(*var.chunks[dim])