tlpipe.plot.plot_integral.RawTimestream.all_data_operate¶
-
RawTimestream.
all_data_operate
(func, copy_data=False, **kwargs)[source]¶ Operation to the whole vis and vis_mask.
Note since vis and vis_mask is usually distributed on different processes, func should not have operations that depend on their elements not held in their local array of each process.
Parameters: - func (function object) – The opertation function object. It is of type func(vis, vis_mask, self, **kwargs), which will operate on vis, vis_mask and return two new arrays with their original shape and dtype.
- copy_data (bool, optional) – If True, func will operate on a copy of the data, so changes will have no impact on the data the container holds. Default False.
- **kwargs (any other arguments) – Any other arguments that will passed to func.