{"action":"created","issue":{"url":"https://api.github.com/repos/prjemian/punx/issues/53","repository_url":"https://api.github.com/repos/prjemian/punx","labels_url":"https://api.github.com/repos/prjemian/punx/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/prjemian/punx/issues/53/comments","events_url":"https://api.github.com/repos/prjemian/punx/issues/53/events","html_url":"https://github.com/prjemian/punx/issues/53","id":191065359,"number":53,"title":"Cannot validate file: example_mapping.nxs","user":{"login":"prjemian","id":2279984,"avatar_url":"https://avatars.githubusercontent.com/u/2279984?v=3","gravatar_id":"","url":"https://api.github.com/users/prjemian","html_url":"https://github.com/prjemian","followers_url":"https://api.github.com/users/prjemian/followers","following_url":"https://api.github.com/users/prjemian/following{/other_user}","gists_url":"https://api.github.com/users/prjemian/gists{/gist_id}","starred_url":"https://api.github.com/users/prjemian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prjemian/subscriptions","organizations_url":"https://api.github.com/users/prjemian/orgs","repos_url":"https://api.github.com/users/prjemian/repos","events_url":"https://api.github.com/users/prjemian/events{/privacy}","received_events_url":"https://api.github.com/users/prjemian/received_events","type":"User","site_admin":false},"labels":[{"id":379735393,"url":"https://api.github.com/repos/prjemian/punx/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"prjemian","id":2279984,"avatar_url":"https://avatars.githubusercontent.com/u/2279984?v=3","gravatar_id":"","url":"https://api.github.com/users/prjemian","html_url":"https://github.com/prjemian","followers_url":"https://api.github.com/users/prjemian/followers","following_url":"https://api.github.com/users/prjemian/following{/other_user}","gists_url":"https://api.github.com/users/prjemian/gists{/gist_id}","starred_url":"https://api.github.com/users/prjemian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prjemian/subscriptions","organizations_url":"https://api.github.com/users/prjemian/orgs","repos_url":"https://api.github.com/users/prjemian/repos","events_url":"https://api.github.com/users/prjemian/events{/privacy}","received_events_url":"https://api.github.com/users/prjemian/received_events","type":"User","site_admin":false},"assignees":[{"login":"prjemian","id":2279984,"avatar_url":"https://avatars.githubusercontent.com/u/2279984?v=3","gravatar_id":"","url":"https://api.github.com/users/prjemian","html_url":"https://github.com/prjemian","followers_url":"https://api.github.com/users/prjemian/followers","following_url":"https://api.github.com/users/prjemian/following{/other_user}","gists_url":"https://api.github.com/users/prjemian/gists{/gist_id}","starred_url":"https://api.github.com/users/prjemian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prjemian/subscriptions","organizations_url":"https://api.github.com/users/prjemian/orgs","repos_url":"https://api.github.com/users/prjemian/repos","events_url":"https://api.github.com/users/prjemian/events{/privacy}","received_events_url":"https://api.github.com/users/prjemian/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/prjemian/punx/milestones/1","html_url":"https://github.com/prjemian/punx/milestones/initial%20public%20release","labels_url":"https://api.github.com/repos/prjemian/punx/milestones/1/labels","id":1838567,"number":1,"title":"initial public release","description":"first public release","creator":{"login":"prjemian","id":2279984,"avatar_url":"https://avatars.githubusercontent.com/u/2279984?v=3","gravatar_id":"","url":"https://api.github.com/users/prjemian","html_url":"https://github.com/prjemian","followers_url":"https://api.github.com/users/prjemian/followers","following_url":"https://api.github.com/users/prjemian/following{/other_user}","gists_url":"https://api.github.com/users/prjemian/gists{/gist_id}","starred_url":"https://api.github.com/users/prjemian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prjemian/subscriptions","organizations_url":"https://api.github.com/users/prjemian/orgs","repos_url":"https://api.github.com/users/prjemian/repos","events_url":"https://api.github.com/users/prjemian/events{/privacy}","received_events_url":"https://api.github.com/users/prjemian/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":34,"state":"open","created_at":"2016-06-20T15:52:24Z","updated_at":"2016-11-22T17:03:30Z","due_on":"2017-01-15T00:00:00Z","closed_at":null},"comments":1,"created_at":"2016-11-22T17:01:39Z","updated_at":"2016-11-22T22:37:14Z","closed_at":null,"body":"Testing against the file [example_mapping.nxs](https://github.com/nexusformat/features/blob/master/examples/example_mapping.nxs), this exception trace was produced:\r\n\r\n\tPS C:\\Users\\Pete\\Downloads> punx va .\\example_mapping.nxs\r\n\tTraceback (most recent call last):\r\n\t  File \"D:\\Apps\\Anaconda\\Scripts\\punx-script.py\", line 9, in <module>\r\n\t\tload_entry_point('punx==0.0.9', 'console_scripts', 'punx')()\r\n\t  File \"D:\\Apps\\Anaconda\\lib\\site-packages\\punx\\main.py\", line 406, in main\r\n\t\targs.func(args)\r\n\t  File \"D:\\Apps\\Anaconda\\lib\\site-packages\\punx\\main.py\", line 205, in func_validate\r\n\t\tvalidator.validate()\r\n\t  File \"D:\\Apps\\Anaconda\\lib\\site-packages\\punx\\validate.py\", line 247, in validate\r\n\t\tself.validate_HDF5_group(self.h5)\r\n\t  File \"D:\\Apps\\Anaconda\\lib\\site-packages\\punx\\validate.py\", line 325, in validate_HDF5_group\r\n\t\tself.validate_HDF5_group(child)\r\n\t  File \"D:\\Apps\\Anaconda\\lib\\site-packages\\punx\\validate.py\", line 325, in validate_HDF5_group\r\n\t\tself.validate_HDF5_group(child)\r\n\t  File \"D:\\Apps\\Anaconda\\lib\\site-packages\\punx\\validate.py\", line 337, in validate_HDF5_group\r\n\t\tself.validate_NXDL_specification(group, nx_class_name)\r\n\t  File \"D:\\Apps\\Anaconda\\lib\\site-packages\\punx\\validate.py\", line 447, in validate_NXDL_specification\r\n\t\tself.validate_NXDL_field_specification(field_name, group, rules)\r\n\t  File \"D:\\Apps\\Anaconda\\lib\\site-packages\\punx\\validate.py\", line 539, in validate_NXDL_field_specification\r\n\t\tt = type(v) in self.data_types[attr_type]\r\n\tKeyError: 'str'\r\n\r\nIn addition to the exception, there is no indication what object in the HDF5 file triggered the exception."},"comment":{"url":"https://api.github.com/repos/prjemian/punx/issues/comments/262386963","html_url":"https://github.com/prjemian/punx/issues/53#issuecomment-262386963","issue_url":"https://api.github.com/repos/prjemian/punx/issues/53","id":262386963,"user":{"login":"prjemian","id":2279984,"avatar_url":"https://avatars.githubusercontent.com/u/2279984?v=3","gravatar_id":"","url":"https://api.github.com/users/prjemian","html_url":"https://github.com/prjemian","followers_url":"https://api.github.com/users/prjemian/followers","following_url":"https://api.github.com/users/prjemian/following{/other_user}","gists_url":"https://api.github.com/users/prjemian/gists{/gist_id}","starred_url":"https://api.github.com/users/prjemian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prjemian/subscriptions","organizations_url":"https://api.github.com/users/prjemian/orgs","repos_url":"https://api.github.com/users/prjemian/repos","events_url":"https://api.github.com/users/prjemian/events{/privacy}","received_events_url":"https://api.github.com/users/prjemian/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T22:37:14Z","updated_at":"2016-11-22T22:37:14Z","body":"In nxdl.xsd, ``interpretation`` is defined as type ``xs:string`` (as other are similar enumerations).  This validation code is expecting a NeXus data type, such as ``NX_CHAR``.\r\n\r\nThis validation should trap such an occurrence **BUT** perhaps the NeXus ``nxdl.xsd`` file could be similarly revised?"}}
{"actor":{"display_login":"prjemian"}}