Skip to content

Commit

Permalink
imports fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
cfs-data committed Dec 5, 2023
1 parent 72ac537 commit 64f1322
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions telcell/utils/transform.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import itertools
from collections import Counter, defaultdict
from collections import Counter
from datetime import datetime, timedelta, time
from itertools import combinations
from itertools import chain, combinations
from typing import Iterator, Tuple, Mapping, Any, List, Iterable

from more_itertools import pairwise
Expand Down Expand Up @@ -181,7 +180,7 @@ def select_colocated_pairs(tracks: List[Track],
:return: A filtered list with all colocated paired measurements.
"""
track_pairs = create_track_pairs(tracks)
track_pairs_colocated = itertools.chain.from_iterable(
track_pairs_colocated = chain.from_iterable(
[get_switches(track_a, track_b) for track_a, track_b in track_pairs if
is_colocated(track_a, track_b)])
return filter_delay(track_pairs_colocated, max_delay)
Expand Down

0 comments on commit 64f1322

Please sign in to comment.