utils.remove_bad_times#
Back to Module page
Summary#
Removes elements of dat that are in the same bucket as in bad_time_list
Signature#
def remove_bad_times(bad_time_list, time_list, time_shift_tol, *dat)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
List of bad times (s) |
||
|
List of times that elements in dat correspond to (s) |
||
|
Tolerance for buckets (s) |
||
|
Any number of lists that need to be cleaned of bad times |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
dat, with bad times cleaned. If dat is a single list, returns list instead of list of lists |
Docstring#
Removes elements of dat that are in the same bucket as in bad_time_list
:param bad_time_list: List of bad times (s)
:param time_list: List of times that elements in dat correspond to (s)
:param time_shift_tol: Tolerance for buckets (s)
:param dat: Any number of lists that need to be cleaned of bad times
:return:
dat, with bad times cleaned. If dat is a single list, returns list
instead of list of lists