Skip to content

Instantly share code, notes, and snippets.

View ariannarocchetti's full-sized avatar

arianna rocchetti ariannarocchetti

View GitHub Profile
x = """
#!/bin/bash
#SBATCH --job-name=nSort
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=8
#SBATCH --mem-per-cpu=4480
#SBACTH --output=log.out
#SBATCH --time=8:00:00
#SBATCH --account=pi-lgrandi
truth = st.get_df(run_id, 'truth')
---------------------------------------------------------------------------
UFuncTypeError Traceback (most recent call last)
<ipython-input-9-98001a2a1c1a> in <module>
2 # !rm -r strax_data
3
----> 4 records = st.get_array(run_id,'records')
5 # peaks = st.get_array(run_id, ['peaks','peak_basics'])
6 # data = st.get_df(run_id, 'event_info')
from straxen.contexts import xnt_common_config
aux_repo = 'https://raw.githubusercontent.com/XENONnT/strax_auxiliary_files/'
xnt_common_config['gain_model'] = ('to_pe_per_run',
aux_repo+'58e615f99a4a6b15e97b12951c510de91ce06045/fax_files/to_pe_nt.npy')
st = strax.Context(
storage=strax.DataDirectory('./strax_data'),
register=wfsim.RawRecordsFromFaxNT,
config=dict(detector='XENONnT',
fax_config=aux_repo+'4e71b8a2446af772c83a8600adc77c0c3b7e54d1/fax_files/fax_config_nt.json',
**straxen.contexts.xnt_common_config,