Skip to content

Commit

Permalink
Merge branch 'master' into waveform_dtype
Browse files Browse the repository at this point in the history
  • Loading branch information
rlopezcoto authored Jul 10, 2020
2 parents efa0590 + 96b86aa commit b7dd56e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ctapipe_io_lst/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,11 @@ def read_pulse_shapes():
pulse shapes: Single-p.e. pulse shapes, ndarray of shape (2, 1640)
'''

# temporary replace the reference pulse shape ("oversampled_pulse_LST_8dynode_pix6_20200204.dat")
# with a dummy one in order to disable the charge corrections in the charge extractor
infilename = resource_filename('ctapipe_io_lst',
'resources/oversampled_pulse_LST_8dynode_pix6_20200204.dat')
'resources/no_corrections_pulse_LST.dat')

data = np.genfromtxt(infilename, dtype='float', comments='#')
daq_time_per_sample = data[0, 0] * u.ns
pulse_shape_time_step = data[0, 1] * u.ns
Expand Down
11 changes: 11 additions & 0 deletions ctapipe_io_lst/resources/no_corrections_pulse_LST.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
9.765625e-01 4
0 0
1 1
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0

0 comments on commit b7dd56e

Please sign in to comment.