dacapo.experiments.datasplits.datasets.arrays.concat_array_config
Classes
This array read data from the source array and then return a np.ones_like() version of the data. |
Module Contents
- class dacapo.experiments.datasplits.datasets.arrays.concat_array_config.ConcatArrayConfig
This array read data from the source array and then return a np.ones_like() version of the data.
- channels
An ordering for the source_arrays.
- Type:
List[str]
- source_array_configs
A mapping from channels to array_configs. If a channel has no ArrayConfig it will be filled with zeros
- Type:
Dict[str, ArrayConfig]
- default_config
An optional array providing the default array per channel. If not provided, missing channels will simply be filled with 0s
- Type:
Optional[ArrayConfig]
- __attrs_post_init__(self)
This method is called after the instance has been initialized by the constructor. It is used to set the default_config to an instance of ArrayConfig if it is None.
- get_array(self, source_arrays
Dict[str, np.ndarray]) -> np.ndarray: This method reads data from the source array and then return a np.ones_like() version of the data.
Note
This class is used to create a ConcatArray object which is used to read data from the source array and then return a np.ones_like() version of the data. The source array is a dictionary with the key being the channel and the value being the array.
- array_type
- channels: List[str]
- source_array_configs: Dict[str, dacapo.experiments.datasplits.datasets.arrays.array_config.ArrayConfig]
- default_config: dacapo.experiments.datasplits.datasets.arrays.array_config.ArrayConfig | None