WrightTools.data.Data.create_channel
- Data.create_channel(name, values=None, *, shape=None, units=None, dtype=None, **kwargs) Channel [source]
Append a new channel.
- Parameters:
name (string) – Unique name for this channel.
values (array (optional)) – Array. If None, an empty array equaling the data shape is created. Default is None.
shape (tuple of int) – Shape to use. Must broadcast with the full shape. Only used if values is None. Default is the full shape of self.
units (string (optional)) – Channel units. Default is None.
dtype (numpy.dtype (optional)) – dtype to use for dataset, default is np.float64. Only used if values is None.
kwargs (dict) – Additional keyword arguments passed to Channel instantiation.
- Returns:
Created channel.
- Return type: