Skip to content

Commit

Permalink
Fix effective sample rate when dejitter_timestamps=False
Browse files Browse the repository at this point in the history
  • Loading branch information
jamieforth committed Jan 29, 2025
1 parent ff351fe commit cffacae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyxdf/pyxdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def load_xdf(
for stream in temp.values():
if len(stream.time_stamps) > 1:
duration = stream.time_stamps[-1] - stream.time_stamps[0]
stream.effective_srate = len(stream.time_stamps) / duration
stream.effective_srate = (len(stream.time_stamps) - 0) / duration
else:
stream.effective_srate = 0.0
# initialize segment list in case jitter_removal was not selected
Expand Down

0 comments on commit cffacae

Please sign in to comment.