Skip to content

Random columns in CSV #1092

Description

@benoit-cty

Describe the bug
Hi,
I've recently encountered an issue with successive measurement recordings in CSV format using CodeCarbon. When running the same measurement multiple times in a row, the CSV format appears to change unpredictably: the gpu_count and gpu_model columns intermittently appear and disappear without any clear reason.
This inconsistency triggers the warning: "The CSV format has changed, backing up old emission file." As a result, multiple files are created: each previous file is backed up with a .bak extension, and a new file is generated.
Is this a known issue? If so, is there a way to resolve or work around it?
Environment Details:
• CodeCarbon version: 3.2.3
• OS: Windows-10-10.0.26200-SP0
• CPU: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
• GPU: None
Thanks in advance for your help!

To Reproduce
Steps to reproduce the behavior:
successive measurement recordings in CSV format

Expected behavior
Consistent columns

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions