codecarbon 2.3.3__tar.gz → 2.3.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {codecarbon-2.3.3/codecarbon.egg-info → codecarbon-2.3.4}/PKG-INFO +1 -1
- codecarbon-2.3.4/codecarbon/_version.py +1 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/emissions_tracker.py +4 -4
- {codecarbon-2.3.3 → codecarbon-2.3.4/codecarbon.egg-info}/PKG-INFO +1 -1
- {codecarbon-2.3.3 → codecarbon-2.3.4}/setup.py +1 -1
- codecarbon-2.3.3/codecarbon/_version.py +0 -1
- {codecarbon-2.3.3 → codecarbon-2.3.4}/LICENSE +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/README.md +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/__init__.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/__init__.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/__init__.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/dependencies.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/domain/__init__.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/domain/emissions.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/domain/experiments.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/domain/organizations.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/domain/projects.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/domain/runs.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/domain/teams.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/domain/users.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/errors.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/routers/__init__.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/routers/authenticate.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/routers/emissions.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/routers/experiments.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/routers/organizations.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/routers/projects.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/routers/runs.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/routers/teams.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/routers/users.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/schemas.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/config.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/database/__init__.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/database/database.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/logger.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/container.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/main.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/setup.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/__init__.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/cli/__init__.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/cli/cli_utils.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/cli/main.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/core/__init__.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/core/api_client.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/core/cloud.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/core/co2_signal.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/core/config.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/core/cpu.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/core/emissions.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/core/gpu.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/core/measure.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/core/powermetrics.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/core/rapl.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/core/schemas.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/core/units.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/core/util.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/data/cloud/impact.csv +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/data/hardware/cpu_power.csv +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/data/private_infra/2016/canada_energy_mix.json +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/data/private_infra/2016/usa_emissions.json +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/data/private_infra/carbon_intensity_per_source.json +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/data/private_infra/global_energy_mix.json +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/external/__init__.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/external/geography.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/external/hardware.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/external/logger.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/external/scheduler.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/external/task.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/input.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/output.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/prometheus/__init__.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/prometheus/metric_definitions.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/prometheus/prometheus.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/viz/__init__.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/viz/assets/__init__.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/viz/assets/car_icon.png +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/viz/assets/house_icon.png +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/viz/assets/tv_icon.png +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/viz/carbonboard.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/viz/carbonboard_on_api.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/viz/components.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/viz/data.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon.egg-info/SOURCES.txt +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon.egg-info/dependency_links.txt +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon.egg-info/entry_points.txt +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon.egg-info/requires.txt +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon.egg-info/top_level.txt +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/setup.cfg +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_api_call.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_cloud.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_co2_signal.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_config.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_core_util.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_cpu.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_emissions.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_emissions_tracker.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_emissions_tracker_constant.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_emissions_tracker_flush.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_energy.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_geography.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_gpu.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_logging_output.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_powermetrics.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_ram.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_tracking_inference.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/test_viz_data.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/testdata.py +0 -0
- {codecarbon-2.3.3 → codecarbon-2.3.4}/tests/testutils.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.3.4"
|
|
@@ -303,8 +303,9 @@ class BaseEmissionsTracker(ABC):
|
|
|
303
303
|
hardware = CPU.from_utils(self._output_dir, "intel_rapl")
|
|
304
304
|
self._hardware.append(hardware)
|
|
305
305
|
self._conf["cpu_model"] = hardware.get_model()
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
elif (
|
|
307
|
+
powermetrics.is_powermetrics_available() and self._default_cpu_power is None
|
|
308
|
+
):
|
|
308
309
|
logger.info("Tracking Apple CPU and GPU via PowerMetrics")
|
|
309
310
|
hardware_cpu = AppleSiliconChip.from_utils(
|
|
310
311
|
self._output_dir, chip_part="CPU"
|
|
@@ -319,7 +320,6 @@ class BaseEmissionsTracker(ABC):
|
|
|
319
320
|
|
|
320
321
|
self._conf["gpu_model"] = hardware_gpu.get_model()
|
|
321
322
|
self._conf["gpu_count"] = 1
|
|
322
|
-
|
|
323
323
|
else:
|
|
324
324
|
logger.warning(
|
|
325
325
|
"No CPU tracking mode found. Falling back on CPU constant mode."
|
|
@@ -737,7 +737,7 @@ class BaseEmissionsTracker(ABC):
|
|
|
737
737
|
emissions = self._prepare_emissions_data(delta=True)
|
|
738
738
|
logger.info(
|
|
739
739
|
f"{emissions.emissions_rate * 1000:.6f} g.CO2eq/s mean an estimation of "
|
|
740
|
-
+ f"{emissions.emissions_rate*3600*24*365:,} kg.CO2eq/year"
|
|
740
|
+
+ f"{emissions.emissions_rate * 3600 * 24 * 365:,} kg.CO2eq/year"
|
|
741
741
|
)
|
|
742
742
|
if self._cc_api__out:
|
|
743
743
|
self._cc_api__out.out(emissions)
|
|
@@ -20,7 +20,7 @@ TEST_DEPENDENCIES = ["mock", "pytest", "responses", "tox", "numpy", "requests-mo
|
|
|
20
20
|
|
|
21
21
|
setuptools.setup(
|
|
22
22
|
name="codecarbon",
|
|
23
|
-
version="2.3.
|
|
23
|
+
version="2.3.4",
|
|
24
24
|
author="Mila, DataForGood, BCG GAMMA, Comet.ml, Haverford College",
|
|
25
25
|
long_description=long_description,
|
|
26
26
|
long_description_content_type="text/markdown",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.3.3"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecarbon-2.3.3 → codecarbon-2.3.4}/carbonserver/carbonserver/api/routers/organizations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/data/private_infra/2016/canada_energy_mix.json
RENAMED
|
File without changes
|
|
File without changes
|
{codecarbon-2.3.3 → codecarbon-2.3.4}/codecarbon/data/private_infra/carbon_intensity_per_source.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|