dacapo.experiments.datasplits.datasets.arrays.constant_array_config
Classes
This array read data from the source array and then return a np.ones_like() version. |
Module Contents
- class dacapo.experiments.datasplits.datasets.arrays.constant_array_config.ConstantArrayConfig
This array read data from the source array and then return a np.ones_like() version.
This is useful for creating a mask array from a source array. For example, if you have a 2D array of data and you want to create a mask array that is the same shape as the data array, you can use this class to create the mask array.
- source_array_config
The source array that you want to copy and fill with ones.
- create_array()
Create the array.
Note
This class is a subclass of ArrayConfig.
- source_array_config: dacapo.experiments.datasplits.datasets.arrays.array_config.ArrayConfig
- constant: int
- array(mode: str = 'r') funlib.persistence.Array