def get_num_logs()

in distill/segmentation/segments.py [0:0]


    def get_num_logs(self, num_logs):
        """
        Returns a new Segments object only including segments with the specified number of logs.
        :param num_logs: The minimum number of logs (inclusive) necessary to be included in the new Segments object.
        :return: A new Segments object that contains Segment objects with at least the specified number of logs.
        """
        segments = [segment for segment in self.segments if segment.num_logs >= num_logs]
        return Segments(segments)