src/sammie/py/eelinterface.py
def loadInputFile(pipelinekey:str, path:str, loaderName:str, loaderArgs:Dict, batchPreviewIdx:int = -1):
    """
    Loads an file by path into the input of the pipeline
    Args:
        pipelinekey (str): The key to recognise this input by
        path (str):  Full Path to load from
        loaderName (str): See src/py/loaders/fileloaders.py for a list of loader funcitons
        loaderArgs (Dict): Any arguments to be passed to the loader, set in JS if necessary
        batchPreviewIdx (int): The batch number this preview is part of. giving a batchPReview will identify this data as simply preview and it will not be loaded into the session.
    Returns: a JS object with a preview URL and some metadata on this file.

    """
    print('[Eel]: Loading Input %s: %s (preview #%d):' % (pipelinekey,path,batchPreviewIdx))
    if batchPreviewIdx == -1:
        return fileLoader.loadFile(pipelinekey,path,loaderName,loaderArgs)

    return fileLoader.loadFilePreview(pipelinekey,batchPreviewIdx,path,loaderName,loaderArgs)

    Loads an file by path into the input of the pipeline
    Args:
        pipelinekey (str): The key to recognise this input by
        path (str):  Full Path to load from
        loaderName (str): See src/py/loaders/fileloaders.py for a list of loader funcitons
        loaderArgs (Dict): Any arguments to be passed to the loader, set in JS if necessary
        batchPreviewIdx (int): The batch number this preview is part of. giving a batchPReview will identify this data as simply preview and it will not be loaded into the session.
    Returns: a JS object with a preview URL and some metadata on this file.

    
Loads an file by path into the input of the pipeline
Loads an file by path into the input of the pipeline
def loadInputFile(pipelinekey:str, path:str, loaderName:str, loaderArgs:Dict, batchPreviewIdx:int = -1):
    print('[Eel]: Loading Input %s: %s (preview #%d):' % (pipelinekey,path,batchPreviewIdx))
    if batchPreviewIdx == -1:
        return fileLoader.loadFile(pipelinekey,path,loaderName,loaderArgs)
    return fileLoader.loadFilePreview(pipelinekey,batchPreviewIdx,path,loaderName,loaderArgs)
def loadInputFile ( pipelinekey : str , path : str , loaderName : str , loaderArgs : Dict , batchPreviewIdx : int = - 1 ) : print ( '[Eel]: Loading Input %s: %s (preview #%d):' % ( pipelinekey , path , batchPreviewIdx ) ) if batchPreviewIdx == - 1 : return fileLoader . loadFile ( pipelinekey , path , loaderName , loaderArgs ) return fileLoader . loadFilePreview ( pipelinekey , batchPreviewIdx , path , loaderName , loaderArgs )
Loads an file by path into the input of the pipeline
Loads an file by path into the input of the pipeline
"""
    Loads an file by path into the input of the pipeline
    Args:
        pipelinekey (str): The key to recognise this input by
        path (str):  Full Path to load from
        loaderName (str): See src/py/loaders/fileloaders.py for a list of loader funcitons
        loaderArgs (Dict): Any arguments to be passed to the loader, set in JS if necessary
        batchPreviewIdx (int): The batch number this preview is part of. giving a batchPReview will identify this data as simply preview and it will not be loaded into the session.
    Returns: a JS object with a preview URL and some metadata on this file.

    """
pipelinekey
str
The key to recognise this input by
The key to recognise this input by
path
str
Full Path to load from
Full Path to load from
loaderName
str
See src/py/loaders/fileloaders.py for a list of loader funcitons
See src / py / loaders / fileloaders . py for a list of loader funcitons
loaderArgs
Dict
Any arguments to be passed to the loader, set in JS if necessary
Any arguments to be passed to the loader set in JS if necessary
batchPreviewIdx
int
The batch number this preview is part of. giving a batchPReview will identify this data as simply preview and it will not be loaded into the session.
The batch number this preview is part of . giving a batchPReview will identify this data as simply preview and it will not be loaded into the session .