Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AssertionError Traceback (most recent call last)
- <ipython-input-220-668965d4f03f> in <module>()
- 10 preselect=['cs1>0', 's2_area_fraction_top < 0.74','z>-94' ,'z<-7', 'x**2+y**2<47**2']
- 11 #df = hax.minitrees.load(run_names, ['Corrections','Basics','Extended','Fundamentals'], preselection=preselect, force_reload=False, num_workers = 5)
- ---> 12 df = hax.minitrees.load(run_names, ['Corrections','Basics','Extended','Fundamentals','Proximity','PositionReconstruction'], preselection=preselect, force_reload=False, num_workers = 7)
- 13 #print('Saving dataframe to hdf5.')
- 14 #hdf = HDFStore('spectrum_uncut_feb_oct.h5')
- /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)
- 516 # again
- 517 mashedup_result = dask.compute(*([result] + partial_histories),
- --> 518 num_workers=num_workers, **compute_options)
- 519 result = mashedup_result[0]
- 520
- /project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/base.py in compute(*args, **kwargs)
- 177 dsk = merge(var.dask for var in variables)
- 178 keys = [var._keys() for var in variables]
- --> 179 results = get(dsk, keys, **kwargs)
- 180
- 181 results_iter = iter(results)
- /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)
- 84 result = get_async(pool.apply_async, len(pool._pool), dsk3, keys,
- 85 get_id=_process_get_id,
- ---> 86 dumps=dumps, loads=loads, **kwargs)
- 87 finally:
- 88 if cleanup:
- /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)
- 491 _execute_task(task, data) # Re-execute locally
- 492 else:
- --> 493 raise(remote_exception(res, tb))
- 494 state['cache'][key] = res
- 495 finish_task(dsk, key, state, results, keyorder.get)
- AssertionError:
- Traceback
- ---------
- File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/async.py", line 268, in execute_task
- result = _execute_task(task, data)
- File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/async.py", line 249, in _execute_task
- return func(*args2)
- File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/compatibility.py", line 47, in apply
- return func(*args, **kwargs)
- 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
- run_id, treemaker, force_reload=force_reload, event_list=event_list)
- 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
- skimmed_data = treemaker().get_data(run_id, event_list=event_list)
- 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
- return hax.minitrees.TreeMaker.get_data(self, dataset, event_list)
- 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
- desc='Making %s minitree' % self.__class__.__name__)
- 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
- for _ in function_results_datasets(*args, **kwargs):
- 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
- raise e
- 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
- yield event_function(event, **kwargs)
- 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
- result = self.extract_data(event)
- 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
- assert label != 'event'
Add Comment
Please, Sign In to add comment