Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX fix a bug in _filter_emissions to accept numbers w/o decimal and dict emissions #753

Merged
merged 4 commits into from
Mar 10, 2022
Merged

Conversation

adrinjalali
Copy link
Contributor

This PR fixes a but where it would raise if emissions is a dict, and when the value is something such as "17g"

This issue recently caused a failure in the test suite.

cc @muellerzr @osanseviero @LysandreJik

@adrinjalali
Copy link
Contributor Author

CI is green.

@muellerzr muellerzr self-requested a review March 9, 2022 15:24
Copy link
Contributor

@muellerzr muellerzr left a comment

Choose a reason for hiding this comment

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

Thanks for this! LG2M

@julien-c
Copy link
Member

julien-c commented Mar 9, 2022

also cc'ing @sashavor as she might be interested in this!

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

LGTM, feel free to merge @adrinjalali. Thanks!

@osanseviero
Copy link
Member

The failing test is unrelated (cc @merveenoyan), feel free to merge 🚀

@adrinjalali adrinjalali merged commit 0a6ab6c into huggingface:main Mar 10, 2022
@adrinjalali adrinjalali deleted the fix/emissions branch March 10, 2022 09:24
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.

None yet

5 participants