diff --git a/ros2topic/ros2topic/verb/bw.py b/ros2topic/ros2topic/verb/bw.py index 62cb51e48..b1ad3f1cb 100644 --- a/ros2topic/ros2topic/verb/bw.py +++ b/ros2topic/ros2topic/verb/bw.py @@ -97,7 +97,7 @@ def callback(self, data): # TODO(yechun1): Subscribing to the msgs and calculate the length may be # inefficient. Optimize here if a better solution is found. self.sizes.append(len(data)) # AnyMsg instance - assert(len(self.times) == len(self.sizes)) + assert len(self.times) == len(self.sizes) if len(self.times) > self.window_size: self.times.pop(0)