Open inimaz opened 7 months ago
Hey ! Why not but it is important to avoid using mutable default arguments
I don't see any 'list' types in the current __init__
method so we need to check whether this works with the _sentinel
pattern works with lists
Goal
For every output method of the emissions tracker, we have a
save_to_X
param to pass. See : https://github.com/mlco2/codecarbon/blob/master/codecarbon/emissions_tracker.py#L229-L236 This can become very complex in the long run.A nice thing will be to have just one param called
output
that allows an array of strings.Before
After
What do you think?