caterva2.fetch#

caterva2.fetch(path, urlbase='http://localhost:8002/', slice_=None, auth_cookie=None)#

Fetch (a slice of) the data in a dataset.

Parameters:
  • path (str) – The path of the dataset.

  • urlbase (str) – The base of URLs (slash-terminated) of the subscriber to query.

  • slice_ (str) – The slice to fetch (the whole dataset if missing).

  • auth_cookie (str) – An optional HTTP cookie for authorizing access.

Returns:

The slice of the dataset.

Return type:

numpy.ndarray