argopy.utils.GreenCoding.footprint_baseline

argopy.utils.GreenCoding.footprint_baseline#

GreenCoding.footprint_baseline(start_date: str | Timestamp | None = None, end_date: str | Timestamp | None = None, errors='ignore')[source]#

Compute the ‘baseline’ footprint

The ‘baseline’ footprint is from PRs that are not merged. PRs status can be ‘open’ or ‘closed’. All details are available on the documentation page.

Parameters:
  • start_date (str, pandas.Timestamp, default=None) – Measurements starting date, default to start of measurements

  • end_date (str, pandas.Timestamp, default=None) – Measurements ending date, default to today

  • errors (Literal, default: ignore) –

    Define how to handle errors raised during data fetching:
    • raise (default): Raise any error encountered

    • ignore: Do not stop processing, simply issue a debug message in logging console

    • silent: Do not stop processing and do not issue log message

Returns:

Total carbon footprint in gCO2eq, considering all workflows

Return type:

float

See also

GreenCoding.for_release, GreenCoding.total_measurements