tlpipe.plot.plot_integral.RawTimestream.create_main_data

RawTimestream.create_main_data(data, recreate=False, copy_attrs=False)[source]

Create or recreate a main dataset.

Parameters:
  • data (np.ndarray or MPIArray) – The data to create a dataset.
  • recreate (bool, optional) – If True will recreate a dataset with this name if it already exists, else a RuntimeError will be rasised. Default False.
  • copy_attrs (bool, optional) – If True, when recreate the dataset, its original attributes will be copyed to the new dataset, else no copy is done. Default Fasle.