Skip to content

Instantly share code, notes, and snippets.

@cdeil
Created June 2, 2015 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdeil/582fda0f7894d364ca9c to your computer and use it in GitHub Desktop.
Save cdeil/582fda0f7894d364ca9c to your computer and use it in GitHub Desktop.
$ make test-examples
Running examples/io/file.py ...
==============================
ROOT.TFile made easy by rootpy
==============================
This example demonstrates how basic file operations are made easier in rootpy.
Directory('data.root/a')
Directory('data.root/a/b')
Directory('data.root/a/b/c') has no attribute 'd'
('', ['a'], ['h1', 'h2'])
('a', ['b', 'e', 'd'], [])
('a/b', ['c'], [])
('a/b/c', [], [])
('a/e', ['f'], [])
('a/e/f', [], [])
('a/d', [], [])
File('data.root')
Hist
Hist2D
Hist
Running examples/plotting/plot_autobinning.py ...
==================================================
Fill histograms from arrays with automatic binning
==================================================
This example demonstrates how to fill a histogram from an array of data
and to automatically choose a binning with various methods.
The automatic binning requires numpy/scipy
Traceback (most recent call last):
File "plot_autobinning.py", line 14, in <module>
from rootpy.interactive import wait
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/ROOT.py", line 352, in _importhook
return _orig_ihook( name, *args, **kwds )
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/rootpy-0.8.0.dev0-py3.4.egg/rootpy/interactive/__init__.py", line 12, in <module>
from .console import interact
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/ROOT.py", line 352, in _importhook
return _orig_ihook( name, *args, **kwds )
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/rootpy-0.8.0.dev0-py3.4.egg/rootpy/interactive/console.py", line 74, in <module>
fix_ipython_startup(_finalSetup)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/rootpy-0.8.0.dev0-py3.4.egg/rootpy/logger/magic.py", line 385, in fix_ipython_startup
consts = fn.im_func.__code__.co_consts
AttributeError: 'function' object has no attribute 'im_func'
examples/plotting/plot_autobinning.py failed!
make: *** [test-examples] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment