Skip to content

Commit

Permalink
tiny bug in window_average
Browse files Browse the repository at this point in the history
  • Loading branch information
JGHartel committed Sep 25, 2024
1 parent b6a59bc commit 6ef6732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyneon/preprocess/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def window_average(
"new_ts must have a lower sampling frequency than the old data"
)
if window_size is None:
window_size = new_ts_median_diff
window_size = int(new_ts_median_diff)
new_data = pd.DataFrame(data=new_ts, columns=["timestamp [ns]"], dtype="Int64")
new_data["time [s]"] = (new_ts - new_ts[0]) / 1e9
for col in data.columns:
Expand Down

0 comments on commit 6ef6732

Please sign in to comment.