xarray.testing.strategies.dimension_names

xarray.testing.strategies.dimension_names#

xarray.testing.strategies.dimension_names(*, name_strategy=text(alphabet=characters(max_codepoint=383, categories=['L', 'N']), min_size=1, max_size=5), min_dims=0, max_dims=3)[source]#

Generates an arbitrary list of valid dimension names.

Requires the hypothesis package to be installed.

Parameters:
  • name_strategy – Strategy for making names. Useful if we need to share this.

  • min_dims – Minimum number of dimensions in generated list.

  • max_dims – Maximum number of dimensions in generated list.