{"action":"created","issue":{"url":"https://api.github.com/repos/fact-project/classifier-tools/issues/44","repository_url":"https://api.github.com/repos/fact-project/classifier-tools","labels_url":"https://api.github.com/repos/fact-project/classifier-tools/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/fact-project/classifier-tools/issues/44/comments","events_url":"https://api.github.com/repos/fact-project/classifier-tools/issues/44/events","html_url":"https://github.com/fact-project/classifier-tools/issues/44","id":279769152,"number":44,"title":"'No such dataset' in klaas_split_data with current master","user":{"login":"jebuss","id":7489182,"avatar_url":"https://avatars0.githubusercontent.com/u/7489182?v=4","gravatar_id":"","url":"https://api.github.com/users/jebuss","html_url":"https://github.com/jebuss","followers_url":"https://api.github.com/users/jebuss/followers","following_url":"https://api.github.com/users/jebuss/following{/other_user}","gists_url":"https://api.github.com/users/jebuss/gists{/gist_id}","starred_url":"https://api.github.com/users/jebuss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jebuss/subscriptions","organizations_url":"https://api.github.com/users/jebuss/orgs","repos_url":"https://api.github.com/users/jebuss/repos","events_url":"https://api.github.com/users/jebuss/events{/privacy}","received_events_url":"https://api.github.com/users/jebuss/received_events","type":"User","site_admin":false},"labels":[{"id":365770927,"url":"https://api.github.com/repos/fact-project/classifier-tools/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":{"login":"mackaiver","id":4076745,"avatar_url":"https://avatars3.githubusercontent.com/u/4076745?v=4","gravatar_id":"","url":"https://api.github.com/users/mackaiver","html_url":"https://github.com/mackaiver","followers_url":"https://api.github.com/users/mackaiver/followers","following_url":"https://api.github.com/users/mackaiver/following{/other_user}","gists_url":"https://api.github.com/users/mackaiver/gists{/gist_id}","starred_url":"https://api.github.com/users/mackaiver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackaiver/subscriptions","organizations_url":"https://api.github.com/users/mackaiver/orgs","repos_url":"https://api.github.com/users/mackaiver/repos","events_url":"https://api.github.com/users/mackaiver/events{/privacy}","received_events_url":"https://api.github.com/users/mackaiver/received_events","type":"User","site_admin":false},"assignees":[{"login":"mackaiver","id":4076745,"avatar_url":"https://avatars3.githubusercontent.com/u/4076745?v=4","gravatar_id":"","url":"https://api.github.com/users/mackaiver","html_url":"https://github.com/mackaiver","followers_url":"https://api.github.com/users/mackaiver/followers","following_url":"https://api.github.com/users/mackaiver/following{/other_user}","gists_url":"https://api.github.com/users/mackaiver/gists{/gist_id}","starred_url":"https://api.github.com/users/mackaiver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackaiver/subscriptions","organizations_url":"https://api.github.com/users/mackaiver/orgs","repos_url":"https://api.github.com/users/mackaiver/repos","events_url":"https://api.github.com/users/mackaiver/events{/privacy}","received_events_url":"https://api.github.com/users/mackaiver/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-12-06T14:19:16Z","updated_at":"2017-12-06T15:12:55Z","closed_at":null,"author_association":"OWNER","body":"Hi, \r\nwhen running klaas_split_data from the current master, I get the following error message:\r\n \r\n```\r\nklaas_split_data build/data/gamma_precuts.hdf5 build/data/gamma \\\r\n        -f 0.25 -n train_sep \\\r\n        -f 0.5 -n train_reg \\\r\n        -f 0.25 -n test \\\r\n        -i events\r\nINFO:root:Found a total of 692836 single-telescope events in the file\r\nINFO:root:Writing 173209 telescope-array events to: build/data/gamma_train_sep.hdf5\r\nTraceback (most recent call last):\r\n  File \"/home/jbuss/.conda/envs/gamma/bin/klaas_split_data\", line 11, in <module>\r\n    load_entry_point('klaas', 'console_scripts', 'klaas_split_data')()\r\n  File \"/home/jbuss/.conda/envs/gamma/lib/python3.5/site-packages/click/core.py\", line 716, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/home/jbuss/.conda/envs/gamma/lib/python3.5/site-packages/click/core.py\", line 696, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/home/jbuss/.conda/envs/gamma/lib/python3.5/site-packages/click/core.py\", line 889, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/home/jbuss/.conda/envs/gamma/lib/python3.5/site-packages/click/core.py\", line 534, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/home/jbuss/software/classifier-tools/klaas/scripts/split_data.py\", line 111, in main\r\n    write_data(selected_data, path, key=key, use_hp5y=not use_pandas)\r\n  File \"/home/jbuss/software/pyfact/fact/io.py\", line 34, in write_data\r\n    to_h5py(file_path, df, key=key, **kwargs)\r\n  File \"/home/jbuss/software/pyfact/fact/io.py\", line 267, in to_h5py\r\n    append_to_h5py(f, array, key=key)\r\n  File \"/home/jbuss/software/pyfact/fact/io.py\", line 428, in append_to_h5py\r\n    raise KeyError('No such dataset {}'.format(dataset))\r\nKeyError: 'No such dataset None'\r\nmake: *** [build/data/gamma_train_reg.hdf5] Fehler 1\r\n```"},"comment":{"url":"https://api.github.com/repos/fact-project/classifier-tools/issues/comments/349668874","html_url":"https://github.com/fact-project/classifier-tools/issues/44#issuecomment-349668874","issue_url":"https://api.github.com/repos/fact-project/classifier-tools/issues/44","id":349668874,"user":{"login":"jebuss","id":7489182,"avatar_url":"https://avatars0.githubusercontent.com/u/7489182?v=4","gravatar_id":"","url":"https://api.github.com/users/jebuss","html_url":"https://github.com/jebuss","followers_url":"https://api.github.com/users/jebuss/followers","following_url":"https://api.github.com/users/jebuss/following{/other_user}","gists_url":"https://api.github.com/users/jebuss/gists{/gist_id}","starred_url":"https://api.github.com/users/jebuss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jebuss/subscriptions","organizations_url":"https://api.github.com/users/jebuss/orgs","repos_url":"https://api.github.com/users/jebuss/repos","events_url":"https://api.github.com/users/jebuss/events{/privacy}","received_events_url":"https://api.github.com/users/jebuss/received_events","type":"User","site_admin":false},"created_at":"2017-12-06T15:12:55Z","updated_at":"2017-12-06T15:12:55Z","author_association":"OWNER","body":"So the first iteration of this line destroys it and the the error appears in this block:\r\n\r\nhttps://github.com/fact-project/classifier-tools/blob/b27bc8abc424719bdb0f1c6c19ec129c53802b9d/klaas/scripts/split_data.py#L107-L115"}}
{"actor":{"display_login":"jebuss"}}