Skip to content
New issue

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

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

Already on GitHub? # to your account

Boolean value handling #224

Closed
mpsonntag opened this issue Feb 21, 2018 · 0 comments · Fixed by #233
Closed

Boolean value handling #224

mpsonntag opened this issue Feb 21, 2018 · 0 comments · Fixed by #233

Comments

@mpsonntag
Copy link
Contributor

Currently values "false", "f", False and 0 are automatically converted to boolean False; everything else including any string characters, int and float values are converted to True.

Maybe any value other than "false", "f", 0, False, "true", "t", 1, True should raise a ValueError when trying to assign it to an odML boolean value.

mpsonntag added a commit to mpsonntag/python-odml that referenced this issue Feb 22, 2018
Closes G-Node#224

Disallow setting a value that cannot be
interpreted as boolean for a boolean DType.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant