Skip to content

Commit 8ae3f32

Browse files
committed
merge/rebase from main
1 parent 59c1827 commit 8ae3f32

2 files changed

Lines changed: 3 additions & 337 deletions

File tree

codecarbon/core/monte_carlo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def compute_confidence_interval(
176176

177177
# Edge case: very small sample sizes may produce identical bounds
178178
if n < 10:
179-
# Log warning for unreliable statistics
179+
# Log warning for STATISTICALLY INSIGNIFICANT results
180180
logger.warning(
181181
f"Small sample size (n={n}) may produce unreliable confidence intervals. "
182182
"Consider n_samples >= 100 for production use."
@@ -242,8 +242,8 @@ def quantify_emissions_uncertainty(
242242
... carbon_intensity_gco2_kwh=500.0,
243243
... pue=1.2
244244
... )
245-
>>> print(f"Emissions: {uncertainty.emissions_kg:.3f} kg CO₂")
246-
>>> print(f"95% CI: [{uncertainty.ci_lower_kg:.3f}, {uncertainty.ci_upper_kg:.3f}] kg CO₂")
245+
>>> f"Emissions: {uncertainty.emissions_kg:.3f} kg CO₂"
246+
>>> f"95% CI: [{uncertainty.ci_lower_kg:.3f}, {uncertainty.ci_upper_kg:.3f}] kg CO₂"
247247
"""
248248
# Generate Monte Carlo samples
249249
samples = estimate_emissions_distribution(

tests/test_uncertainty_simple.py

Lines changed: 0 additions & 334 deletions
This file was deleted.

0 commit comments

Comments
 (0)