gwexpy.interop.dask_
Functions
|
Create TimeSeries from dask array. |
|
Convert a TimeSeries to a dask.array.Array. |
- gwexpy.interop.dask_.to_dask(ts, chunks='auto')[source]
Convert a TimeSeries to a dask.array.Array.
- gwexpy.interop.dask_.from_dask(cls, array, t0, dt, unit=None, compute=True)[source]
Create TimeSeries from dask array.
- Parameters:
cls (type) – Class to instantiate from the array data.
array (dask.array.Array) – Input dask array containing the sample values.
t0 (float or Quantity) – Start time for the output series.
dt (float or Quantity) – Sample spacing for the output series.
unit (str or Unit, optional) – Unit to assign to the output series.
compute (bool) – If True, compute the array to numpy immediately. If False, TimeSeries will hold the dask array (if underlying class supports it, gwpy TimeSeries usually expects numpy, so caution). Default True for safety.