開発版ドキュメント · 0.2.3 30c2f8ba · 入門例の検証対象 0.2.3 · 版情報 · 既知の制限

gwexpy.interop.dask_#

Functions

from_dask(cls, array, t0, dt[, unit, compute])

Create TimeSeries from dask array.

to_dask(ts[, chunks])

Convert a TimeSeries to a dask.array.Array.

gwexpy.interop.dask_.to_dask(ts, chunks='auto')#

Convert a TimeSeries to a dask.array.Array.

gwexpy.interop.dask_.from_dask(cls, array, t0, dt, unit=None, compute=True)#

Create TimeSeries from dask array.

パラメータ:
  • 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.