def finish(self):
        if settings.pad_missing_tcp_data:
            self.pad_missing_data()
        self.finished = True
        # calculate final_arrival
        if not self.final_arrival_data:
            peak_time = 0.0
            for vertex in self.arrival_data:
                if vertex[1].ts > peak_time:
                    peak_time = vertex[1].ts
                    self.final_arrival_data.insert((vertex[0], vertex[1].ts))

        if self.chunks and not self.final_data_chunk:
            self.final_data_chunk = self.chunks[0]
Notifies the direction that there are no more packets coming. This means
dataset/ETHPy150Open andrewf/pcap2har/pcap2har/tcp/direction.py/Direction.finish