-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix(webdataset): don't .lower() field_name #7726
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
Conversation
fixes: #7732 |
else: | ||
data_extension = field_name.split(".")[-1] | ||
data_extension = field_name.split(".")[-1].lower() | ||
if data_extension in cls.DECODERS: | ||
current_example[field_name] = cls.DECODERS[data_extension](current_example[field_name]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need it lowered to check if it's in cls.DECODERS
no ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes the data_extension
is lowered but the field_name
is not in the proposed fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yes !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :) can you just run make style
before we merge ?
this will fix the code formatting for the CI
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
CI failures are unrelated, merging :) |
This fixes cases where keys have upper case identifiers