daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Mar 26th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---------------------------------------------------------------------------
  2. IndexError                                Traceback (most recent call last)
  3. <ipython-input-5-608b6c0006b7> in <module>()
  4.       1 run = 16808
  5. ----> 2 hax.minitrees.load(run, treemakers=treemakers)
  6.  
  7. /project/lgrandi/anaconda3/envs/pax_v6.10.1/lib/python3.4/site-packages/hax-2.5.0-py3.4.egg/hax/minitrees.py in load(datasets, treemakers, preselection, force_reload, delayed, num_workers, compute_options, cache_file, remake_cache, event_list)
  8.     531     df_example, _ = load_single_dataset(
  9.     532         first_dset,
  10. --> 533         treemakers, preselection, force_reload=force_reload, event_list=event_list)
  11.     534
  12.     535     partial_results = []
  13.  
  14. /project/lgrandi/anaconda3/envs/pax_v6.10.1/lib/python3.4/site-packages/hax-2.5.0-py3.4.egg/hax/minitrees.py in load_single_dataset(run_id, treemakers, preselection, force_reload, event_list, bypass_blinding)
  15.     390         try:
  16.     391             dataset_frame = load_single_minitree(
  17. --> 392                 run_id, treemaker, force_reload=force_reload, event_list=event_list)
  18.     393         except NoMinitreeAvailable as e:
  19.     394             log.debug(str(e))
  20.  
  21. /project/lgrandi/anaconda3/envs/pax_v6.10.1/lib/python3.4/site-packages/hax-2.5.0-py3.4.egg/hax/minitrees.py in load_single_minitree(run_id, treemaker, force_reload, return_metadata, save_file, event_list)
  22.     331     # We have to make the minitree file
  23.     332     # This will raise FileNotFoundError if the root file is not found
  24. --> 333     skimmed_data = treemaker().get_data(run_id, event_list=event_list)
  25.     334
  26.     335     log.debug(
  27.  
  28. /project/lgrandi/anaconda3/envs/pax_v6.10.1/lib/python3.4/site-packages/hax-2.5.0-py3.4.egg/hax/treemakers/pattern.py in get_data(self, dataset, event_list)
  29.      80         self.indices = list(data.event_number.values)
  30.      81
  31. ---> 82         return hax.minitrees.TreeMaker.get_data(self, dataset, event_list)
  32.      83
  33.      84     def load_run_doc(self, run):
  34.  
  35. /project/lgrandi/anaconda3/envs/pax_v6.10.1/lib/python3.4/site-packages/hax-2.5.0-py3.4.egg/hax/minitrees.py in get_data(self, dataset, event_list)
  36.      99                           event_lists=event_list,
  37.     100                           branch_selection=self.branch_selection,
  38. --> 101                           desc='Making %s minitree' % self.__class__.__name__)
  39.     102         self.check_cache(force_empty=True)
  40.     103         if not len(self.data):
  41.  
  42. /project/lgrandi/anaconda3/envs/pax_v6.10.1/lib/python3.4/site-packages/hax-2.5.0-py3.4.egg/hax/paxroot.py in loop_over_datasets(*args, **kwargs)
  43.     163     See function_results_datasets for possible options.
  44.     164     """
  45. --> 165     for _ in function_results_datasets(*args, **kwargs):
  46.     166         # do nothing with the results
  47.     167         pass
  48.  
  49. /project/lgrandi/anaconda3/envs/pax_v6.10.1/lib/python3.4/site-packages/hax-2.5.0-py3.4.egg/hax/paxroot.py in function_results_datasets(datasets_names, event_function, event_lists, branch_selection, kwargs, desc)
  50.     155         except Exception as e:
  51.     156             rootfile.Close()
  52. --> 157             raise e
  53.     158
  54.     159
  55.  
  56. /project/lgrandi/anaconda3/envs/pax_v6.10.1/lib/python3.4/site-packages/hax-2.5.0-py3.4.egg/hax/paxroot.py in function_results_datasets(datasets_names, event_function, event_lists, branch_selection, kwargs, desc)
  57.     149                 t.GetEntry(event_i)
  58.     150                 event = t.events
  59. --> 151                 yield event_function(event, **kwargs)
  60.     152
  61.     153         except StopEventLoop:
  62.  
  63. /project/lgrandi/anaconda3/envs/pax_v6.10.1/lib/python3.4/site-packages/hax-2.5.0-py3.4.egg/hax/minitrees.py in process_event(self, event)
  64.      81
  65.      82     def process_event(self, event):
  66. ---> 83         result = self.extract_data(event)
  67.      84         if not isinstance(result, dict):
  68.      85             raise ValueError("TreeMakers must always extract dictionary")
  69.  
  70. /project/lgrandi/anaconda3/envs/pax_v6.10.1/lib/python3.4/site-packages/hax-2.5.0-py3.4.egg/hax/treemakers/pattern.py in extract_data(self, event)
  71.     171             # Create PMT array of booleans for use in likelihood calculation
  72.     172             is_pmt_in = np.ones(len(self.tpc_channels), dtype=bool)  # Default True
  73. --> 173             is_pmt_in[confused_s1_channels] = False  # Ignore saturated channels
  74.     174
  75.     175             event_data['s1_pattern_fit_hax'] = self.s1_pattern_fitter.compute_gof(
  76.  
  77. IndexError: index 249 is out of bounds for axis 1 with size 248
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top