iarray.set_config_defaults#

iarray.set_config_defaults(cfg: Optional[Config] = None, shape=None, **kwargs)#

Set the global defaults for iarray operations.

Parameters
  • cfg (Config) – The configuration that will become the default for iarray operations. If None, the defaults are not changed.

  • shape (Sequence) – This is not part of the global configuration as such, but if passed, it will be used so as to compute sensible defaults for store properties like chunk shape and block shape. This is mainly meant for internal use.

  • kwargs (dict) – A dictionary for setting some or all of the fields in the Config dataclass that should override the current configuration.

Returns

The new global configuration.

Return type

Config