-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make drop ticks method static and create related test
- Loading branch information
1 parent
1e61d01
commit fd60648
Showing
3 changed files
with
62 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from derotation.analysis.derotation_pipeline import DerotationPipeline | ||
|
||
|
||
def test_drop_ticks_generated_randomly( | ||
rotation_ticks, start_end_times, full_length, number_of_rotations | ||
): | ||
start, end = start_end_times | ||
cleaned_ticks = DerotationPipeline.drop_ticks_outside_of_rotation( | ||
rotation_ticks, start, end, full_length, number_of_rotations | ||
) | ||
|
||
assert len(cleaned_ticks) == 362 |