def require_dataset(handle, symbol):
    gid = symbol[:3]
    group = handle.require_group(gid)
    try:
        ds = group[symbol]
    except __HOLE__:
        ds = group.create_dataset(symbol, (240, ), DTYPE)
    return ds
dataset/ETHPy150Open yinhm/datafeed/example/bench_dataset.py/require_dataset