Retrieve

def calculate_splits(sdf_file, split_size):
    """Retrieve
    """
    counts = _sdfstats(sdf_file)["counts"]
    splits = []
    cur = 0
    for i in range(counts // split_size + (0 if counts % split_size == 0 else 1)):
        splits.append("%s-%s" % (cur, min(counts, cur + split_size)))
        cur += split_size
    return splits