Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default drift time as nan #700

Merged
merged 5 commits into from
Oct 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions straxen/plugins/event_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class EventBasics(strax.Plugin):
The main S2 and alternative S2 are given by the largest two S2-Peaks
within the event. By default this is also true for S1.
"""
__version__ = '1.2.0'
__version__ = '1.2.1'

depends_on = ('events',
'peak_basics',
Expand All @@ -153,7 +153,7 @@ def infer_dtype(self):
dtype += strax.time_fields
dtype += [('n_peaks', np.int32,
'Number of peaks in the event'),
('drift_time', np.int32,
('drift_time', np.float32,
'Drift time between main S1 and S2 in ns'),
('event_number', np.int64,
'Event number in this dataset'),
Expand Down Expand Up @@ -219,7 +219,7 @@ def _get_si_dtypes(peak_properties):

# Drifts and delays
si_dtype += [
(f'alt_s{s_i}_interaction_drift_time', np.int32,
(f'alt_s{s_i}_interaction_drift_time', np.float32,
f'Drift time using alternate S{s_i} [ns]'),
(f'alt_s{s_i}_delay', np.int32,
f'Time between main and alternate S{s_i} [ns]')]
Expand Down