Skip to content

Instantly share code, notes, and snippets.

View pdeperio's full-sized avatar

Patrick de Perio pdeperio

  • Kavli IPMU
  • Japan
View GitHub Profile
@pdeperio
pdeperio / gist:9b3d6ead93103d549c43
Created September 11, 2015 13:42
150911-MacOSX_pax_make_test_error
pdeperio$ make test
python setup.py test
running test
Searching for llvmlite
Best match: llvmlite 0.7.0
Processing llvmlite-0.7.0-py3.4.egg
Using /Users/pdeperio/XENON/XENON1T/Software/pax/.eggs/llvmlite-0.7.0-py3.4.egg
Searching for bumpversion
Best match: bumpversion 0.5.3
@pdeperio
pdeperio / XENON100_light.ini
Created September 11, 2015 13:53
XENON100 ROOT output config file for pax 3.3.0
##
# XENON100-specific configuration settings
##
# This is just for setting up pax
[pax]
parent_configuration = "XENON100"
# Plugin groups: plugins from these groups will be loaded (in order)
@pdeperio
pdeperio / gist:a97f65f04e02418bcb5c
Created September 11, 2015 14:00
150911-paxer_fail_macosx
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/pdeperio/anaconda3/lib/python3.4/site-packages/matplotlib/pyplot.py", line 27, in <module>
import matplotlib.colorbar
File "/Users/pdeperio/anaconda3/lib/python3.4/site-packages/matplotlib/colorbar.py", line 34, in <module>
import matplotlib.collections as collections
File "/Users/pdeperio/anaconda3/lib/python3.4/site-packages/matplotlib/collections.py", line 27, in <module>
import matplotlib.backend_bases as backend_bases
File "/Users/pdeperio/anaconda3/lib/python3.4/site-packages/matplotlib/backend_bases.py", line 56, in <module>
@pdeperio
pdeperio / gist:07cf7257bb97bd01ab5b
Created September 15, 2015 02:44
paxer failure with old .ini file
Traceback (most recent call last):
File "/project/lgrandi/anaconda3/bin/paxer", line 4, in <module>
__import__('pkg_resources').run_script('pax==3.3.0', 'paxer')
File "/project/lgrandi/anaconda3/lib/python3.4/site-packages/setuptools-18.1-py3.4.egg/pkg_resources/__init__.py", line 735, in run_script
File "/project/lgrandi/anaconda3/lib/python3.4/site-packages/setuptools-18.1-py3.4.egg/pkg_resources/__init__.py", line 1652, in run_script
File "/project/lgrandi/anaconda3/lib/python3.4/site-packages/pax-3.3.0-py3.4.egg/EGG-INFO/scripts/paxer", line 462, in <module>
main()
File "/project/lgrandi/anaconda3/lib/python3.4/site-packages/pax-3.3.0-py3.4.egg/EGG-INFO/scripts/paxer", line 277, in main
pax_instance.run()
File "/project/lgrandi/anaconda3/lib/python3.4/site-packages/pax-3.3.0-py3.4.egg/pax/core.py", line 502, in run
@pdeperio
pdeperio / XENON100_light.ini
Created September 15, 2015 02:46
Much more simplified config file for XENON100 light output
##
# XENON100-specific light ouput configuration settings
##
# This is just for setting up pax
[pax]
parent_configuration = "XENON100"
[Table.TableWriter]
output_format = 'root' # hdf5, csv, numpy, html, json, root
@pdeperio
pdeperio / README
Created September 19, 2015 15:07
pax ROOT TTree Flattening
--------------------------------------
Title: flattenPaxRootTree.C
--------------------------------------
--------------------------------------
Purpose: C++ program for flattening ROOT output of XENON1T pax processor.
--------------------------------------
--------------------------------------
Compilation:
@pdeperio
pdeperio / gist:1f5f56f85372d3a6398b
Last active November 7, 2015 11:21
pax install error (with root=6)
(pax)lap-deperio:~ pdeperio$ pip install git+https://github.com/XENON1T/pax.git
Collecting git+https://github.com/XENON1T/pax.git
Cloning https://github.com/XENON1T/pax.git to /var/folders/ln/jk6qvb2j4b77jj5pdt49d6sm0000gn/T/pip-2dmvp5xe-build
Username for 'https://github.com': pdeperio
Password for 'https://pdeperio@github.com':
Complete output from command python setup.py egg_info:
input_line_1:1:10: fatal error: file '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new' modified since it was first processed
#include <new>
^
input_line_3:38:10: fatal error: file '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string' modified since it was first processed
@pdeperio
pdeperio / gist:0026a39720a80a241549
Created November 7, 2015 11:23
ROOT + Python Errors
(pax)lap-deperio:~ pdeperio$ python
Python 3.4.3 |Continuum Analytics, Inc.| (default, Oct 20 2015, 14:27:51)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
input_line_1:1:10: fatal error: file
'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new' modified since
it was first processed
#include <new>
^
@pdeperio
pdeperio / XENON100_light.ini
Created November 7, 2015 11:41
XENON100_light.ini for pax 4.0.1 ROOT output test
##
# XENON100-specific configuration settings
##
# This is just for setting up pax
[pax]
parent_configuration = "XENON100"
[Table.TableWriter]
@pdeperio
pdeperio / XENON100.ini
Last active November 7, 2015 11:42
XENON100.ini for pax 4.0.1 ROOT output test
##
# XENON100-specific configuration settings
##
# This is just for setting up pax
[pax]
parent_configuration = "_base"
input = 'XED.ReadXED'