mlco2 / codecarbon

Track emissions from Compute and recommend ways to reduce their impact on the environment.
https://mlco2.github.io/codecarbon
MIT License
1k stars 157 forks source link

Add output parameter #510

Open jevvyh opened 4 months ago

jevvyh commented 4 months ago

Description

I am trying to write a new variable that allows me to add the keywords of the project I am working on to the emissions.csv file after stopping tracker. I am unable to add anything to the script after tracker.stop. Would you be able to advice me on what is best to do to add a new variable to the output csv.

What I Did

I have tried reading the emissions.csv file back in to edit after tracker.stop but the code stops running after tracker is stopped

benoit-cty commented 3 months ago

Hi, tracker.stop() is not supposed to stop the program. You could set a name when you instanciate the tracker with parameter project_name:

tracker = EmissionsTracker(project_name="mnist_inference")
benoit-cty commented 3 months ago

Do you still have the problem ?