Skip to content

fix: empty emissions file is allowed#930

Merged
inimaz merged 2 commits into
masterfrom
fix/empty-emissions-file
Sep 15, 2025
Merged

fix: empty emissions file is allowed#930
inimaz merged 2 commits into
masterfrom
fix/empty-emissions-file

Conversation

@inimaz

@inimaz inimaz commented Sep 14, 2025

Copy link
Copy Markdown
Collaborator

Related Issue

Closes #929 . User can have an emissions.csv file that is empty and it will not throw an error (before it was throwing a Index out of range exception).

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

Go over all the following points, and put an x in all the boxes that apply.

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING.md document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@inimaz inimaz added bug Something isn't working python Pull requests that update Python code labels Sep 14, 2025

@benoit-cty benoit-cty left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for the fix 👍

@inimaz inimaz merged commit 68abba1 into master Sep 15, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] IndexError in has_valid_headers when emissions.csv exists but empty

2 participants