packages/vaex-core/vaex/__init__.py
def _convert_name(filenames, shuffle=False):
    '''Convert a filename (or list of) to a filename with .hdf5 and optionally a -shuffle suffix'''
    if not isinstance(filenames, (list, tuple)):
        filenames = [filenames]
    base = filenames[0]
    if shuffle:
        base += '-shuffle'
    if len(filenames) > 1:
        return base + "_and_{}_more.hdf5".format(len(filenames)-1)
    else:
        return base + ".hdf5"
def _convert_name(filenames, shuffle=False):
    '''Convert a filename (or list of) to a filename with .hdf5 and optionally a -shuffle suffix'''
    if not isinstance(filenames, (list, tuple)):
        filenames = [filenames]
    base = filenames[0]
    if shuffle:
        base += '-shuffle'
    if len(filenames) > 1:
        return base + "_and_{}_more.hdf5".format(len(filenames)-1)
    else:
        return base + ".hdf5"
def _convert_name ( filenames , shuffle = False ) : if not isinstance ( filenames , ( list , tuple ) ) : filenames = [ filenames ] base = filenames [ 0 ] if shuffle : base += '-shuffle' if len ( filenames ) > 1 : return base + "_and_{}_more.hdf5" . format ( len ( filenames ) - 1 ) else : return base + ".hdf5"
Convert a filename (or list of) to a filename with .hdf5 and optionally a -shuffle suffix
Convert a filename ( or list of ) to a filename with . hdf5 and optionally a - shuffle suffix