def _fromiter(it, dtype, count, progress, log):
    if progress > 0:
        it = _iter_withprogress(it, progress, log)
    if count is not None:
        a = np.fromiter(it, dtype=dtype, count=count)
    else:
        a = np.fromiter(it, dtype=dtype)
    return a
Utility function to load an array from an iterator.
dataset/ETHPy150Open alimanfoo/vcfnp/vcfnp/array.py/_fromiter