mlco2 / codecarbon

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

Add output parameter #510

Closed jevvyh closed 4 months ago

jevvyh commented 9 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 9 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 8 months ago

Do you still have the problem ?

inimaz commented 4 months ago

Closing this. @jevvyh feel free to reopen it if you still have the problem.