{"action":"opened","issue":{"url":"https://api.github.com/repos/XENON1T/hax/issues/18","repository_url":"https://api.github.com/repos/XENON1T/hax","labels_url":"https://api.github.com/repos/XENON1T/hax/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/XENON1T/hax/issues/18/comments","events_url":"https://api.github.com/repos/XENON1T/hax/issues/18/events","html_url":"https://github.com/XENON1T/hax/issues/18","id":149154858,"number":18,"title":"hax cannot find data only when notebook is in certain folder","user":{"login":"alecstein","id":16236421,"avatar_url":"https://avatars.githubusercontent.com/u/16236421?v=3","gravatar_id":"","url":"https://api.github.com/users/alecstein","html_url":"https://github.com/alecstein","followers_url":"https://api.github.com/users/alecstein/followers","following_url":"https://api.github.com/users/alecstein/following{/other_user}","gists_url":"https://api.github.com/users/alecstein/gists{/gist_id}","starred_url":"https://api.github.com/users/alecstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecstein/subscriptions","organizations_url":"https://api.github.com/users/alecstein/orgs","repos_url":"https://api.github.com/users/alecstein/repos","events_url":"https://api.github.com/users/alecstein/events{/privacy}","received_events_url":"https://api.github.com/users/alecstein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-18T13:45:07Z","updated_at":"2016-04-18T13:45:07Z","closed_at":null,"body":"When looking for the file 'xenon.root', hax successfully finds the file when the notebook is run in directory /my/dir/, but not when run in /my/dir/subdir/. There are no event class files or minitrees in either folder. Here is the traceback of the error.\r\n```\r\n---------------------------------------------------------------------------\r\nUnicodeDecodeError                        Traceback (most recent call last)\r\n<ipython-input-4-5d76aadf63af> in <module>()\r\n      1 # dataset = 'radon_cut_xe100_110423_1252'\r\n----> 2 data = hax.minitrees.load('xenon', treemakers=['Basics'], force_reload= True);\r\n\r\n/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-0.2-py3.4.egg/hax/minitrees.py in load(datasets, treemakers, force_reload)\r\n    151         dataframes = []\r\n    152         for dataset in datasets:\r\n--> 153             minitree_path = get(dataset, treemaker, force_reload=force_reload)\r\n    154             new_df = pd.DataFrame.from_records(root_numpy.root2rec(minitree_path))\r\n    155             dataframes.append(new_df)\r\n\r\n/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-0.2-py3.4.egg/hax/minitrees.py in get(dataset, treemaker, force_reload)\r\n    115         # We have to make the minitree file\r\n    116         # This will raise FileNotFoundError if the root file is not found\r\n--> 117         skimmed_data = treemaker().get_data(dataset)\r\n    118         print(\"Created minitree %s for dataset %s\" % (treemaker.__name__, dataset))\r\n    119 \r\n\r\n/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-0.2-py3.4.egg/hax/minitrees.py in get_data(self, dataset)\r\n     44         \"\"\"Return data extracted from running over dataset\"\"\"\r\n     45         loop_over_dataset(dataset, self.process_event,\r\n---> 46                           branch_selection=hax.config['basic_branches'] + list(self.extra_branches))\r\n     47         self.check_cache(force_empty=True)\r\n     48         if not hasattr(self, 'data'):\r\n\r\n/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-0.2-py3.4.egg/hax/paxroot.py in loop_over_datasets(datasets_names, event_function, branch_selection)\r\n     84         except Exception as e:\r\n     85             rootfile.Close()\r\n---> 86             raise e\r\n     87 \r\n     88 # For backward compatibility\r\n\r\n/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-0.2-py3.4.egg/hax/paxroot.py in loop_over_datasets(datasets_names, event_function, branch_selection)\r\n     79                 t.GetEntry(event_i)\r\n     80                 event = t.events\r\n---> 81                 event_function(event)\r\n     82         except StopEventLoop:\r\n     83             rootfile.Close()\r\n\r\n/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-0.2-py3.4.egg/hax/minitrees.py in process_event(self, event)\r\n     38 \r\n     39     def process_event(self, event):\r\n---> 40         self.cache.append(self.extract_data(event))\r\n     41         self.check_cache()\r\n     42 \r\n\r\n/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-0.2-py3.4.egg/hax/treemakers/common.py in extract_data(self, event)\r\n     84                 continue\r\n     85             if p.detector == 'tpc':\r\n---> 86                 peak_type = p.type\r\n     87             else:\r\n     88                 # Lump all non-lone-hit veto peaks together as 'veto'\r\n\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0xf2 in position 0: invalid continuation byte\r\n```"}}