-
Notifications
You must be signed in to change notification settings - Fork 345
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
bug: FloatMetadataProperty: value is not a valid float when it is an rounded integer #4605
Conversation
Hi here @sdiazlor, thanks for the PR! w.r.t. @davidberenstein1957's question, I'm not sure, because if we have an |
The URL of the deployed environment for this PR is https://argilla-quickstart-pr-4605-ki24f765kq-no.a.run.app |
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.
@sdiazlor could you also check if this work with the error Dani was experiencing?
The proposed changed avoids the casting to |
@davidberenstein1957 Yes, I already did. And with a similar case (using to_argilla method), it didn't raise the validation issue. Below, you can see that the values are floats. |
Description
With the removal of this line, x.0 values will not be rounded so that it passes the FloatMetadataProperty validation. The error comes from the initial definition of the metadata property as float, but then casting and adding as value an integer.
NOTE: This fixes the bug error directly, although this question is still pending @alvarobartt:
Closes #4570
Type of change
(Please delete options that are not relevant. Remember to title the PR according to the type of change)
How Has This Been Tested
(Please describe the tests that you ran to verify your changes. And ideally, reference
tests
)Checklist
CHANGELOG.md
file (See https://keepachangelog.com/)