def put_block(f, trace, nbheaders, bh, hh=False):
    # write the block headers
    if nbheaders >= 1:
        put_blockheader(f, bh)

    if nbheaders >= 2:
        if hh is False:
            raise Exception("Hyperheader required")
        put_hyperheader(f, hh)

    # write any additional blockheaders as 0s if needed
    for i in range(nbheaders - 2):
        put_blockheader(f, [0] * 9)

    # write the trace
    put_trace(f, trace)

    return
Return sql range condition.
dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/fileio/varian.py/put_block--crossover with--dataset/ETHPy150Open openstack/compass-core/compass/db/api/utils.py/_between_condition