Open inimaz opened 1 year ago
The BaseEmissionsTracker accepts 22 variables when initialized (and growing). This could lead to potential issues. And it is a known code smell.
Refactor the input variables to accept a config dict object as input.
So instead of
EmissionsTracker(project_name: "My project", measure_power_secs=10, output_dir="./temp")
codecarbon could do
config_options = { project_name: "My project", measure_power_secs=10, output_dir="./temp", } EmissionsTracker(config_options)
Or maybe we could use kwargs ?
@inimaz im interested in making this contribution. if you dynamically pass dict object to the EmissionsTracker class how would the developer know which variables are required as input?
Description
The BaseEmissionsTracker accepts 22 variables when initialized (and growing). This could lead to potential issues. And it is a known code smell.
What I Propose
Refactor the input variables to accept a config dict object as input.
So instead of
codecarbon could do