Skip to content

Instantly share code, notes, and snippets.

(strax) erik@linuxbox:~/strax$ python setup.py develop
running develop
running egg_info
creating strax.egg-info
writing strax.egg-info/PKG-INFO
writing dependency_links to strax.egg-info/dependency_links.txt
writing requirements to strax.egg-info/requires.txt
writing top-level names to strax.egg-info/top_level.txt
writing manifest file 'strax.egg-info/SOURCES.txt'
reading manifest file 'strax.egg-info/SOURCES.txt'
(strax) erik@linuxbox:~/strax$ pip install strax
Requirement already satisfied: strax in /home/erik/strax (0.6.0)
Requirement already satisfied: numpy in /home/erik/anaconda3/envs/strax/lib/python3.6/site-packages (from strax) (1.15.4)
Requirement already satisfied: pandas in /home/erik/anaconda3/envs/strax/lib/python3.6/site-packages (from strax) (0.23.4)
Requirement already satisfied: numba in /home/erik/anaconda3/envs/strax/lib/python3.6/site-packages (from strax) (0.42.0)
Collecting blosc (from strax)
Using cached https://files.pythonhosted.org/packages/f4/8f/024a70d6af0b0dd736954a16b2a4be544a2b61ef6c0f660e5221accd4f8c/blosc-1.7.0.tar.gz
Collecting zstd (from strax)
Using cached https://files.pythonhosted.org/packages/75/83/942faeb75d22eca94373dc93a816fdfa56f4018bef437894784c93662ff4/zstd-1.3.8.1.tar.gz
Requirement already satisfied: tqdm in /home/erik/anaconda3/envs/strax/lib/python3.6/site-packages (from strax) (4.28.1)
/cvmfs/xenon.opensciencegrid.org/releases/anaconda/2.4/envs/pax_v6.8.1/lib/python3.4/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
/cvmfs/xenon.opensciencegrid.org/releases/anaconda/2.4/envs/pax_v6.8.1/lib/python3.4/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
processor MainProcess L66 INFO This is PAX version 6.8.1, running with configuration for XENON1T.
WaveformSimulatorFromMC MainProcess L419 WARNING This plugin is completely untested and will probably crash!
^MEvent: 0%| | 0/223 [00:00<?, ?it/s]ROOT.TUnixSystem.ACLiC MainProcess L98 INFO creating shared library /scratch/24440202.1.long/home_crm09_104448230/CREAM104448230/glide_
/cvmfs/xenon.opensciencegrid.org/releases/anaconda/2.4/envs/pax_v6.8.1/lib/python3.4/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
/cvmfs/xenon.opensciencegrid.org/releases/anaconda/2.4/envs/pax_v6.8.1/lib/python3.4/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
processor MainProcess L66 INFO This is PAX version 6.8.1, running with configuration for XENON1T.
Traceback (most recent call last):
File "/cvmfs/xenon.opensciencegrid.org/releases/anaconda/2.4/envs/pax_v6.8.1/bin/paxer", line 4, in <module>
__import__('pkg_resources').run_script('pax==6.8.1', 'paxer')
File "/cvmfs/xenon.opensciencegrid.org/releases/anaconda/2.4/envs/pax_v6.8.1/l
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-18-6ad445ea486b> in <module>()
6 #'Proximity',
7 'TailCut',
----> 8 'TotalProperties'
9 ])
10 del bla
/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-1.6.2-py3.4.egg/hax/minitrees.py in load(datasets, treemakers, preselection, force_reload, delayed, num_workers, compute_options, cache_file, remake_cache)
d['s2_bottom'] = d['s2'] * (1 - d['s2_area_fraction_top'])
x_plot = np.linspace(0, 70, 100)
def ly(dt):
return 230 + 0*dt + 0.06*dt**2
avg_s1 = np.average([ly(dt) for dt in np.linspace(0, 59.5, 100)])
def s1_correction(dt_ns, avg_s1):
dt = dt_ns*0.001
array(['alt_s1_interaction_z', 'alt_s2_interaction_s2_range_50p_area',
'alt_s2_interaction_s2_range_80p_area', 'alt_s2_interaction_x',
'alt_s2_interaction_y', 'alt_s2_interaction_z', 'cs1', 'cs2',
'cs2_bottom', 'cs2_bottom_new', 'cs2_new', 'cs2_top', 'cs2_top_new',
'drift_time', 'event_duration', 'event_number', 'event_time',
'largest_coincidence', 'largest_other_s1', 'largest_other_s2',
'largest_unknown', 'largest_veto', 'nearest_1e5pe_event',
'nearest_1e6pe_event', 'nearest_3e5pe_event', 'nearest_busy',
'nearest_busy_off', 'nearest_busy_on', 'nearest_event',
'nearest_hev', 'nearest_hev_off', 'nearest_hev_on',
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-11-b0fa8b11a4d7> in <module>()
12 ],
13 trigger_data_special_path = '/project/lgrandi/xenon1t/trigger_monitor_data/Run{run_number:06}_trigmondata.zip',
---> 14 acquisition_monitor_special_path = '/project/lgrandi/xenon1t/acquisition_monitor_data/Run{run_number:06}_acqmondata.pickles'
15 )
/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-1.4.2-py3.4.egg/hax/__init__.py in init(filename, **kwargs)
67 import hax
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/pandas/indexes/base.py in get_loc(self, key, method, tolerance)
1944 try:
-> 1945 return self._engine.get_loc(key)
1946 except KeyError:
pandas/index.pyx in pandas.index.IndexEngine.get_loc (pandas/index.c:4154)()
pandas/index.pyx in pandas.index.IndexEngine.get_loc (pandas/index.c:4018)()
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.