{"action":"closed","issue":{"url":"https://api.github.com/repos/XENON1T/hax/issues/225","repository_url":"https://api.github.com/repos/XENON1T/hax","labels_url":"https://api.github.com/repos/XENON1T/hax/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/XENON1T/hax/issues/225/comments","events_url":"https://api.github.com/repos/XENON1T/hax/issues/225/events","html_url":"https://github.com/XENON1T/hax/issues/225","id":312531164,"number":225,"title":"Making minitree for Monte Carlo data","user":{"login":"ctherreau","id":32537906,"avatar_url":"https://avatars2.githubusercontent.com/u/32537906?v=4","gravatar_id":"","url":"https://api.github.com/users/ctherreau","html_url":"https://github.com/ctherreau","followers_url":"https://api.github.com/users/ctherreau/followers","following_url":"https://api.github.com/users/ctherreau/following{/other_user}","gists_url":"https://api.github.com/users/ctherreau/gists{/gist_id}","starred_url":"https://api.github.com/users/ctherreau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctherreau/subscriptions","organizations_url":"https://api.github.com/users/ctherreau/orgs","repos_url":"https://api.github.com/users/ctherreau/repos","events_url":"https://api.github.com/users/ctherreau/events{/privacy}","received_events_url":"https://api.github.com/users/ctherreau/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-09T13:29:25Z","updated_at":"2018-04-09T15:29:31Z","closed_at":"2018-04-09T15:29:31Z","author_association":"CONTRIBUTOR","body":"When trying to make minitrees from processed MonteCarlo data using :\r\n\r\n`\r\nhax.init(experiment='XENON1T', minitree_paths = [path, path_mc+ '/minitrees/',],\r\n              main_data_paths = [path_mc +'/processed/'],\r\n              pax_version_policy= 'loose',\r\n              make_minitrees = True, \r\n             use_runs_db=False,\r\n             blinding_cut = 'event_number > -1'\r\n         )\r\n`\r\n`df = hax.minitrees.load(run_names, treemakers=[ExtendedCorrectedDoubleS1Scatter],force_reload=True)\r\n`\r\n\r\n\r\n\r\nAn assertion error appears (all detail here: \r\nhttps://gist.github.com/ctherreau/8ad46f836ff14ddd5e8e354b6d45a6e5) \r\n\r\nFrom the gitter chat (thanks Jelle, Sander, Lutz), the solution is to add : \r\n`hax.runs.get_run_number = lambda x: 0`\r\n\r\n\r\nIt would be nice to have a more permanent solution.\r\n\r\n"}}
{"actor":{"display_login":"l-althueser"}}