![]() |
GNSS data to OSM format processor and track finder
|
Used to solve more complex forms of unwanted sequential repetitions. More...
Functions | |
| def | consequtive_repetitions (in_list, expected_range=15) |
| Function solves a problem of repeating the same items in a list. More... | |
Variables | |
| list | in_list |
| Tryout. More... | |
| out_list = consequtive_repetitions(in_list, 4) | |
Used to solve more complex forms of unwanted sequential repetitions.
| def consequtive_repetitions.consequtive_repetitions | ( | in_list, | |
expected_range = 15 |
|||
| ) |
Function solves a problem of repeating the same items in a list.
The repetition is understood as more numbers repeating in certain range. As an output, functions returns a list where those repetitive items are excluded. Take a look at "Tryout" at the end of this module to understand functionality.
| expected_range | determines how big this range, in which we want to ignore any duplicates, is (default 15) |
Examples
| list in_list |
| out_list = consequtive_repetitions(in_list, 4) |