solarforecastarbiter.reports.main.compute_report

solarforecastarbiter.reports.main.compute_report(access_token, report_id, base_url=None)[source]

Create a raw report using data from API. Typically called as a task. Failures will attempt to post a message for the failure in an empty RawReport to the API.

Parameters:
  • session (solarforecastarbiter.api.APISession) – API session for getting and posting data
  • report_id (str) – ID of the report to fetch from the API and generate the raw report for
Returns:

raw_report (solarforecastarbiter.datamodel.RawReport)