cf.Partition.directions

Partition.directions

A mapping of the partition’s dimensions to their directions.

If the partition’s sub-array is a scalar then directions is a boolean, otherwise it is a dictionary.

Examples

>>> p.dimensions
[]
>>> p.directions
True
>>> p.dimensions
['dim3', 'dim0', 'dim1']
>>> p.directions
{'dim0': True, 'dim1': False, 'dim3': True}

Previous topic

cf.Partition.dimensions

Next topic

cf.Partition.in_memory

This Page