Use Case
Currently the emissions calculator in emissions.py accounts for rolling over between months, but not years. In theory, it should be simple to extend this logic to any contiguous time period so analysis that spans years would be supported.
Solution
Rename current get_carbon_intensity to get_monthly_carbon_intensity and write a new wrapper called get_carbon_intensity that can process any arbitrary time period.
Alternatives
The alternative is what we are already doing, a script that loops through months and processes them separately.
Use Case
Currently the emissions calculator in
emissions.pyaccounts for rolling over between months, but not years. In theory, it should be simple to extend this logic to any contiguous time period so analysis that spans years would be supported.Solution
Rename current
get_carbon_intensitytoget_monthly_carbon_intensityand write a new wrapper calledget_carbon_intensitythat can process any arbitrary time period.Alternatives
The alternative is what we are already doing, a script that loops through months and processes them separately.