Skip to content

Instantly share code, notes, and snippets.

@ErikHogenbirk
Created February 28, 2017 11:58
Show Gist options
  • Save ErikHogenbirk/c2e1cc86b676302e30458aef4c40fa56 to your computer and use it in GitHub Desktop.
Save ErikHogenbirk/c2e1cc86b676302e30458aef4c40fa56 to your computer and use it in GitHub Desktop.
WARNING:hax.paxroot] Root file /project2/lgrandi/xenon1t/processed/pax_v6.4.2/161103_0151.root does not include pax event class. Normal for pax < 4.5.Falling back to event class for pax 430
WARNING:ROOT.ACLiC] /project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-1.4.1-py3.4.egg/hax/pax_classes is not writable!
WARNING:ROOT.ACLiC] Output will be written to /tmp/hogenbirk
WARNING:ROOT.TClassTable.Add] class Hit already in TClassTable
WARNING:ROOT.TClassTable.Add] class Interaction already in TClassTable
WARNING:ROOT.TClassTable.Add] class ReconstructedPosition already in TClassTable
WARNING:ROOT.TClassTable.Add] class Peak already in TClassTable
WARNING:ROOT.TClassTable.Add] class Pulse already in TClassTable
WARNING:ROOT.TClassTable.Add] class Event already in TClassTable
WARNING:ROOT.TFile.Init] no StreamerInfo found in /project2/lgrandi/xenon1t/processed/pax_v6.4.2/161103_0151.root therefore preventing schema evolution when reading this file.
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-14-d11d31449f81> in <module>()
1 df = hax.minitrees.load(run_numbers,
2 treemakers = ['Basics', 'Fundamentals', 'TotalProperties', hax.treemakers.trigger.Proximity],
----> 3 cache_file = '../../data/cache_files/170228_AmBe.hdf5'
4 )
5
/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-1.4.1-py3.4.egg/hax/minitrees.py in load(datasets, treemakers, preselection, force_reload, delayed, num_workers, compute_options, cache_file, remake_cache)
454 # So we mash things into one list before calling compute, then split it again
455 mashedup_result = dask.compute(*([result] + partial_histories),
--> 456 num_workers=num_workers, **compute_options)
457 result = mashedup_result[0]
458
/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)
81 # Run
82 result = get_async(apply_async, len(pool._pool), dsk3, keys,
---> 83 queue=queue, get_id=_process_get_id, **kwargs)
84 finally:
85 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, queue, get_id, raise_on_exception, rerun_exceptions_locally, callbacks, **kwargs)
479 _execute_task(task, data) # Re-execute locally
480 else:
--> 481 raise(remote_exception(res, tb))
482 state['cache'][key] = res
483 finish_task(dsk, key, state, results, keyorder.get)
AttributeError: 'TObject' object has no attribute 'SetBranchStatus'
Traceback
---------
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/async.py", line 263, in execute_task
result = _execute_task(task, data)
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/async.py", line 245, 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-1.4.1-py3.4.egg/hax/minitrees.py", line 346, in load_single_dataset
dataset_frame = load_single_minitree(run_id, treemaker, force_reload=force_reload, event_list=event_list)
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-1.4.1-py3.4.egg/hax/minitrees.py", line 298, 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-1.4.1-py3.4.egg/hax/minitrees.py", line 82, in get_data
desc='Making %s minitree' % self.__class__.__name__)
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-1.4.1-py3.4.egg/hax/paxroot.py", line 164, in loop_over_datasets
for _ in function_results_datasets(*args, **kwargs):
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-1.4.1-py3.4.egg/hax/paxroot.py", line 130, in function_results_datasets
t.SetBranchStatus("*", 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment