Skip to content

Commit

Permalink
Fix bug found in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob720 committed Jan 8, 2025
1 parent e9960e8 commit da839cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aa_remove_data/remove_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def get_index_at_timestamp(
between the target timestamp and sample.
"""
target = seconds * 10**9 + nano
last_diff = target - samples[0].secondsintoyear * 10**9 + samples[0].nano
last_diff = target - (samples[0].secondsintoyear * 10**9 + samples[0].nano)
for i, sample in enumerate(samples):
diff = target - (sample.secondsintoyear * 10**9 + sample.nano)
if abs(last_diff) < abs(diff):
Expand Down

0 comments on commit da839cd

Please sign in to comment.