Skip to content

Commit 312f9b8

Browse files
committed
Fix
1 parent 5297953 commit 312f9b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cras_bag_tools/src/cras_bag_tools/bag_filter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ def filter_bag(bags, out, bag_filter=Passthrough(), params=None, start_time=None
6767
# apply connection filters
6868
topics = [c.topic for c in bags._get_connections(topics, bag_filter.connection_filter)] # noqa
6969

70-
get_stamp_fn = lambda x: x[2] # get stamp from the tuple
70+
# get stamp from the tuple
71+
def get_stamp_fn(x):
72+
return x[2]
7173
heap = Heap(initial=list(bag_filter.extra_initial_messages()), key=get_stamp_fn)
7274

7375
connection_filter = bag_filter.connection_filter

0 commit comments

Comments
 (0)