def _batch_iterator(self, N=1):
        batch_size = math.ceil(self.num_records / float(N))
        handle = self._open(self.filename)
        while True:
            batch = list(islice(handle, batch_size))
            if not batch:
                break
            yield batch
A function to connect to a zenoss server and add a new device entry.
dataset/ETHPy150Open tanghaibao/jcvi/formats/base.py/FileSplitter._batch_iterator--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/zenoss.py/add_device