{"action":"created","issue":{"url":"https://api.github.com/repos/nextic/IC/issues/438","repository_url":"https://api.github.com/repos/nextic/IC","labels_url":"https://api.github.com/repos/nextic/IC/issues/438/labels{/name}","comments_url":"https://api.github.com/repos/nextic/IC/issues/438/comments","events_url":"https://api.github.com/repos/nextic/IC/issues/438/events","html_url":"https://github.com/nextic/IC/pull/438","id":296827103,"number":438,"title":"Adds functions to read HDF5 Nexus output and corresponding tests","user":{"login":"jerenner","id":8960863,"avatar_url":"https://avatars0.githubusercontent.com/u/8960863?v=4","gravatar_id":"","url":"https://api.github.com/users/jerenner","html_url":"https://github.com/jerenner","followers_url":"https://api.github.com/users/jerenner/followers","following_url":"https://api.github.com/users/jerenner/following{/other_user}","gists_url":"https://api.github.com/users/jerenner/gists{/gist_id}","starred_url":"https://api.github.com/users/jerenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerenner/subscriptions","organizations_url":"https://api.github.com/users/jerenner/orgs","repos_url":"https://api.github.com/users/jerenner/repos","events_url":"https://api.github.com/users/jerenner/events{/privacy}","received_events_url":"https://api.github.com/users/jerenner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-02-13T17:44:38Z","updated_at":"2018-02-15T06:58:49Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/nextic/IC/pulls/438","html_url":"https://github.com/nextic/IC/pull/438","diff_url":"https://github.com/nextic/IC/pull/438.diff","patch_url":"https://github.com/nextic/IC/pull/438.patch"},"body":"These functions read MC hits and particles from Nexus HDF5 output.  They and their tests are similar to the existing functions for reading MC hits.  Note that at the moment the PDG code is assumed to be 0.  The test file was generated with only 1 event, though it seems to be quite large -\r\n about 13Mb in size.  The size of these files appears to change in \"blocks\" (generating 10 events instead of 1 does not seem to increase the output file size, but generating 1000 events does cause a noticeable increase in size)."},"comment":{"url":"https://api.github.com/repos/nextic/IC/issues/comments/365841166","html_url":"https://github.com/nextic/IC/pull/438#issuecomment-365841166","issue_url":"https://api.github.com/repos/nextic/IC/issues/438","id":365841166,"user":{"login":"jacg","id":2570854,"avatar_url":"https://avatars3.githubusercontent.com/u/2570854?v=4","gravatar_id":"","url":"https://api.github.com/users/jacg","html_url":"https://github.com/jacg","followers_url":"https://api.github.com/users/jacg/followers","following_url":"https://api.github.com/users/jacg/following{/other_user}","gists_url":"https://api.github.com/users/jacg/gists{/gist_id}","starred_url":"https://api.github.com/users/jacg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacg/subscriptions","organizations_url":"https://api.github.com/users/jacg/orgs","repos_url":"https://api.github.com/users/jacg/repos","events_url":"https://api.github.com/users/jacg/events{/privacy}","received_events_url":"https://api.github.com/users/jacg/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T06:58:49Z","updated_at":"2018-02-15T06:58:49Z","author_association":"COLLABORATOR","body":"@neuslopez I recommend replacing \r\n\r\n    e = []\r\n    etot = 0\r\n    for ev, hits in a.items():\r\n        etot = 0\r\n        for hit in hits:\r\n            etot = etot + hit.E\r\n        e.append(etot)\r\n\r\nwith\r\n\r\n    Es = [sum(hit.E for hit in hits) for hits in a.values()] \r\n\r\n\r\n"}}
{"actor":{"display_login":"jacg"}}