Skip to content

Commit 1397ffc

Browse files
committed
Move CodecarbonWrapper.py to Profilers directory, and update readmes and
tests
1 parent 79242c5 commit 1397ffc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
File renamed without changes.

experiment-runner/Plugins/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ pip install codecarbon
2222
To simply measure CO2 emissions (kg) and total energy consumed (kWh) and append them as data columns, use the following snippet:
2323

2424
```python
25-
from Plugins import CodecarbonWrapper
26-
from Plugins.CodecarbonWrapper import DataColumns as CCDataCols
25+
from Plugins.Profilers import CodecarbonWrapper
26+
from Plugins.Profilers.CodecarbonWrapper import DataColumns as CCDataCols
2727

2828
@CodecarbonWrapper.emission_tracker(
2929
data_columns=[CCDataCols.EMISSIONS, CCDataCols.ENERGY_CONSUMED],
@@ -38,8 +38,8 @@ This will add `codecarbon__emissions` and `codecarbon__energy_consumed` data col
3838
For a more fine-grained approach, the above snippet is equivalent to the following:
3939

4040
```python
41-
from Plugins import CodecarbonWrapper
42-
from Plugins.CodecarbonWrapper import DataColumns as CCDataCols
41+
from Plugins.Profilers import CodecarbonWrapper
42+
from Plugins.Profilers.CodecarbonWrapper import DataColumns as CCDataCols
4343

4444
class RunnerConfig:
4545

test/Plugins/test_CodecarbonWrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
from ConfigValidator.Config.RunnerConfig import RunnerConfig
1111
from ProgressManager.Output.OutputProcedure import OutputProcedure as output
1212

13-
from Plugins import CodecarbonWrapper
14-
from Plugins.CodecarbonWrapper import DataColumns as CCDataCols
13+
from Plugins.Profilers import CodecarbonWrapper
14+
from Plugins.Profilers.CodecarbonWrapper import DataColumns as CCDataCols
1515

1616

1717
class TestEmissionTrackerIndividual(unittest.TestCase):

0 commit comments

Comments
 (0)