cf.Partition.new_part

Partition.new_part(indices, dim2position, master_directions)[source]

Return the part attribute updated for new indices of the master array.

Does not change the partition in place.

Parameters :

indices : list

dim2position : dict

master_directions : dict

Returns :

out : list

Examples

>>> p.part = p.new_part(indices, dim2position, master_directions)

Previous topic

cf.Partition.itermaster_indices

Next topic

cf.Partition.to_disk

This Page