mango.core.copy

mango.core.copy(dds, shape=None, dtype=None, mtype=None, halo=None, mpidims=None, origin=None)

Copy-create a Dds object from an existing Dds object.

Parameters:
  • dds (Dds) – Copies data elements from dds into newly created Dds object.
  • dtype (scipy.dtype) – Specifies the type of elements in the newly created Dds object, e.g. “uint16”, “float32”, etc.
  • mtype (mango.mtype) – The mango image mtype of the Dds, one of: “Tomographic_Data”, “Segmented_Data”, etc.
  • mpidims (sequence) – The cartesian MPI process layout for the new created Dds.
Return type:

Dds

Returns:

New Dds instance of same dimensions and layout as dds with non-halo elements copied from dds.

Previous topic

mango.core.ones_like

Next topic

mango.core.minmax

This Page