Skip to content

fix: update broken documentation links in Python files#1137

Closed
wangwangbobo wants to merge 5 commits intomlco2:masterfrom
wangwangbobo:fix-empty-project-data-918-clean
Closed

fix: update broken documentation links in Python files#1137
wangwangbobo wants to merge 5 commits intomlco2:masterfrom
wangwangbobo:fix-empty-project-data-918-clean

Conversation

@wangwangbobo
Copy link
Copy Markdown

Fixes issue #1125 - broken documentation links in Python files.

wangwangbobo and others added 3 commits March 24, 2026 18:15
…xError

- Add check for empty project_data list before accessing elements
- Return default structure with zeroed values when no data exists
- Fixes IndexError crash reported in issue mlco2#918
…ionError

- Add check for empty power_history_in_W before division
- Return 0.0 W with warning when no samples collected
- Fixes issue mlco2#832
…odecarbon.io

- Fix URLs in powermetrics.py and main.py
- Resolves issue mlco2#1125 (Python files only)
@wangwangbobo wangwangbobo requested a review from a team as a code owner March 25, 2026 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants