{"action":"created","issue":{"url":"https://api.github.com/repos/h5io/h5io/issues/12","repository_url":"https://api.github.com/repos/h5io/h5io","labels_url":"https://api.github.com/repos/h5io/h5io/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/h5io/h5io/issues/12/comments","events_url":"https://api.github.com/repos/h5io/h5io/issues/12/events","html_url":"https://github.com/h5io/h5io/issues/12","id":136455036,"number":12,"title":"BUG: np.bool_","user":{"login":"kingjr","id":4881164,"avatar_url":"https://avatars.githubusercontent.com/u/4881164?v=3","gravatar_id":"","url":"https://api.github.com/users/kingjr","html_url":"https://github.com/kingjr","followers_url":"https://api.github.com/users/kingjr/followers","following_url":"https://api.github.com/users/kingjr/following{/other_user}","gists_url":"https://api.github.com/users/kingjr/gists{/gist_id}","starred_url":"https://api.github.com/users/kingjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingjr/subscriptions","organizations_url":"https://api.github.com/users/kingjr/orgs","repos_url":"https://api.github.com/users/kingjr/repos","events_url":"https://api.github.com/users/kingjr/events{/privacy}","received_events_url":"https://api.github.com/users/kingjr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-25T17:27:32Z","updated_at":"2016-05-12T20:10:09Z","closed_at":null,"body":"I think `np.bool_` is pretty common and should be supported:\r\n\r\n`write_hdf5(fname, np.bool_(1))`\r\n\r\ncurrently returns the following error\r\n\r\n```\r\n`\r\n/home/jrking/src/h5io/h5io/_h5io.pyc in write_hdf5(fname, data, overwrite, compression, title)\r\n    103         _triage_write(title, data, fid, comp_kw,\r\n    104                       str(type(data)),\r\n--> 105                       cleanup_data=cleanup_data)\r\n    106 \r\n    107     # Will not be empty if any extra data to be written\r\n\r\n/home/jrking/src/h5io/h5io/_h5io.pyc in _triage_write(key, value, root, comp_kw, where, cleanup_data)\r\n    166         else:\r\n    167             err_str = 'unsupported type %s (in %s)' % (type(value), where)\r\n--> 168             raise TypeError(err_str)\r\n    169 \r\n    170 ##############################################################################\r\n\r\nTypeError: unsupported type <type 'numpy.bool_'> (in <type 'numpy.bool_'>)\r\n```\r\n\r\nNote that `np.bool` is supported."},"comment":{"url":"https://api.github.com/repos/h5io/h5io/issues/comments/218871155","html_url":"https://github.com/h5io/h5io/issues/12#issuecomment-218871155","issue_url":"https://api.github.com/repos/h5io/h5io/issues/12","id":218871155,"user":{"login":"kingjr","id":4881164,"avatar_url":"https://avatars.githubusercontent.com/u/4881164?v=3","gravatar_id":"","url":"https://api.github.com/users/kingjr","html_url":"https://github.com/kingjr","followers_url":"https://api.github.com/users/kingjr/followers","following_url":"https://api.github.com/users/kingjr/following{/other_user}","gists_url":"https://api.github.com/users/kingjr/gists{/gist_id}","starred_url":"https://api.github.com/users/kingjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingjr/subscriptions","organizations_url":"https://api.github.com/users/kingjr/orgs","repos_url":"https://api.github.com/users/kingjr/repos","events_url":"https://api.github.com/users/kingjr/events{/privacy}","received_events_url":"https://api.github.com/users/kingjr/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T20:10:09Z","updated_at":"2016-05-12T20:10:09Z","body":"Ok, I wasn't sure this was suppose to be changed at some point in numpy. Let me try a quick PR"}}