solarforecastarbiter.io.reference_aggregates.make_reference_aggregates

solarforecastarbiter.io.reference_aggregates.make_reference_aggregates(token, provider, base_url, aggregates=None)[source]

Create the reference aggregates in the API.

Parameters:
  • token (str) – Access token for the API
  • provider (str) – Provider name to filter all API observations on
  • base_url (str) – URL of the API to list objects and create aggregate at
  • aggregates (list or None) – List of dicts that describes each aggregate. Defaults to REF_AGGREGATES if None.
Raises:

ValueError – If an observation does not exist in the API for an aggregate or multiple observations match the given name and site name.