GreenScheduler / cats

CATS: the Climate-Aware Task Scheduler :cat2: :tiger2: :leopard:
https://greenscheduler.github.io/cats/
MIT License
50 stars 8 forks source link

Get carbon intensities for both delayed and immediate jobs #31

Closed tlestang closed 1 year ago

tlestang commented 1 year ago

closes #28

Currently the parsedata.writecsv function return a dict with (1) the delayed job start time, (2) the corresponding avg carbon intensity over the job runtime and (3) the total carbon intensity over the job. Only (1) is currently used.

The carbon footprint estimation module (carbonFootprint.py) requires (2). To estimate carbon savings, it also needs the average carbon intensity corresponding to running the job right now without waiting. AFAIK - the total carbon intensity (3) is not required.

This PR basically makes 2 changes:

If you're time-crunched, I would say parsedata.avg_carbon_intensity() needs the most reviewing