Skip to content

Commit

Permalink
Convert num of scattered and incandescence to float64
Browse files Browse the repository at this point in the history
  • Loading branch information
rcjackson committed Sep 4, 2024
1 parent 1eb1fa4 commit 74a7687
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysp2/util/deadtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ def deadtime(my_binary, my_ini):
# to index
to = ind[i + 1]
# number of scattering particle windows saved in the buffer
N_S = scatter_triggered[fr:to].sum()
N_S = scatter_triggered[fr:to].sum().astype('float64')
# number of incandesence particle windows saved in the buffer
N_I = incandesence_triggered[fr:to].sum()
N_I = incandesence_triggered[fr:to].sum().astype('float64')
# length of time, in seconds, for a single measurement of the digitizer
t_b = 1.0 / digitization_rate
# "PW is the total number of data points (for each channel of data) in the window"
Expand Down

0 comments on commit 74a7687

Please sign in to comment.