-
Notifications
You must be signed in to change notification settings - Fork 107
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 PositionD parsing in config from strings like '123.1, 234.2', which had been doing the wrong thing. #1300
Conversation
01e9405
to
2fdb9db
Compare
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. Thanks!
Although, it just occurred to me this will still fail if given: pos : 12 => Maybe that's bizarre enough to not bother defending against though. |
That will give an appropriate error:
The one that will work inappropriately is
which I think is probably bizarre enough not to bother defending against. |
Ah, right. Yaml sees that as an int, not a str, so all is well. |
Is there any urgency in getting this into a bugfix release? Or should we let this sit until we have more bugs fixed? |
No urgency I think. The original workaround you proposed seems fine. |
@jmeyers314 noticed in #1299 that a string like '123.4, 567.8' doesn't get parsed correctly. This PR fixes the implementation to work correctly.