Guest User

Untitled

a guest
Jan 17th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.60 KB | None | 0 0
  1. AssertionError Traceback (most recent call last)
  2. <ipython-input-220-668965d4f03f> in <module>()
  3. 10 preselect=['cs1>0', 's2_area_fraction_top < 0.74','z>-94' ,'z<-7', 'x**2+y**2<47**2']
  4. 11 #df = hax.minitrees.load(run_names, ['Corrections','Basics','Extended','Fundamentals'], preselection=preselect, force_reload=False, num_workers = 5)
  5. ---> 12 df = hax.minitrees.load(run_names, ['Corrections','Basics','Extended','Fundamentals','Proximity','PositionReconstruction'], preselection=preselect, force_reload=False, num_workers = 7)
  6. 13 #print('Saving dataframe to hdf5.')
  7. 14 #hdf = HDFStore('spectrum_uncut_feb_oct.h5')
  8.  
  9. /project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-2.2.3-py3.4.egg/hax/minitrees.py in load(datasets, treemakers, preselection, force_reload, delayed, num_workers, compute_options, cache_file, remake_cache, event_list)
  10. 516 # again
  11. 517 mashedup_result = dask.compute(*([result] + partial_histories),
  12. --> 518 num_workers=num_workers, **compute_options)
  13. 519 result = mashedup_result[0]
  14. 520
  15.  
  16. /project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/base.py in compute(*args, **kwargs)
  17. 177 dsk = merge(var.dask for var in variables)
  18. 178 keys = [var._keys() for var in variables]
  19. --> 179 results = get(dsk, keys, **kwargs)
  20. 180
  21. 181 results_iter = iter(results)
  22.  
  23. /project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/multiprocessing.py in get(dsk, keys, num_workers, func_loads, func_dumps, optimize_graph, **kwargs)
  24. 84 result = get_async(pool.apply_async, len(pool._pool), dsk3, keys,
  25. 85 get_id=_process_get_id,
  26. ---> 86 dumps=dumps, loads=loads, **kwargs)
  27. 87 finally:
  28. 88 if cleanup:
  29.  
  30. /project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/async.py in get_async(apply_async, num_workers, dsk, result, cache, get_id, raise_on_exception, rerun_exceptions_locally, callbacks, dumps, loads, **kwargs)
  31. 491 _execute_task(task, data) # Re-execute locally
  32. 492 else:
  33. --> 493 raise(remote_exception(res, tb))
  34. 494 state['cache'][key] = res
  35. 495 finish_task(dsk, key, state, results, keyorder.get)
  36.  
  37. AssertionError:
  38.  
  39. Traceback
  40. ---------
  41. File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/async.py", line 268, in execute_task
  42. result = _execute_task(task, data)
  43. File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/async.py", line 249, in _execute_task
  44. return func(*args2)
  45. File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/compatibility.py", line 47, in apply
  46. return func(*args, **kwargs)
  47. File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-2.2.3-py3.4.egg/hax/minitrees.py", line 388, in load_single_dataset
  48. run_id, treemaker, force_reload=force_reload, event_list=event_list)
  49. File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-2.2.3-py3.4.egg/hax/minitrees.py", line 334, in load_single_minitree
  50. skimmed_data = treemaker().get_data(run_id, event_list=event_list)
  51. File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-2.2.3-py3.4.egg/hax/treemakers/trigger.py", line 114, in get_data
  52. return hax.minitrees.TreeMaker.get_data(self, dataset, event_list)
  53. File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-2.2.3-py3.4.egg/hax/minitrees.py", line 101, in get_data
  54. desc='Making %s minitree' % self.__class__.__name__)
  55. File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-2.2.3-py3.4.egg/hax/paxroot.py", line 165, in loop_over_datasets
  56. for _ in function_results_datasets(*args, **kwargs):
  57. File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-2.2.3-py3.4.egg/hax/paxroot.py", line 157, in function_results_datasets
  58. raise e
  59. File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-2.2.3-py3.4.egg/hax/paxroot.py", line 151, in function_results_datasets
  60. yield event_function(event, **kwargs)
  61. File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-2.2.3-py3.4.egg/hax/minitrees.py", line 81, in process_event
  62. result = self.extract_data(event)
  63. File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-2.2.3-py3.4.egg/hax/treemakers/trigger.py", line 156, in extract_data
  64. assert label != 'event'
Add Comment
Please, Sign In to add comment