utils2p/main.py
def find_optical_flow_file(directory, most_recent=False):
    """
    This function finds the path to the optical flow file
    "OptFlow.txt" created by seven camera software and returns it.
    If multiple files with this name are found, it throws
    an exception unless `most_recent` is `True`,in which case
    the file with the most recent change time is returned.

    Parameters
    ----------
    directory : str
        Directory in which to search.
    most_recent : bool
        If True, the file with the most recent change time
        is returned and no exception is raised if multiple
        files are present.

    Returns
    -------
    path : str
        Path to optical flow file.

    Examples
    --------
    >>> import utils2p
    >>> utils2p.find_optical_flow_file("data/mouse_kidney_raw")
    'data/mouse_kidney_raw/behData/OptFlowData/OptFlow.txt'
    """
    return _find_file(directory,
                      "OptFlow.txt",
                      "optical flow",
                      most_recent=most_recent)

    This function finds the path to the optical flow file
    "OptFlow.txt" created by seven camera software and returns it.
    If multiple files with this name are found, it throws
    an exception unless `most_recent` is `True`,in which case
    the file with the most recent change time is returned.

    Parameters
    ----------
    directory : str
        Directory in which to search.
    most_recent : bool
        If True, the file with the most recent change time
        is returned and no exception is raised if multiple
        files are present.

    Returns
    -------
    path : str
        Path to optical flow file.

    Examples
    --------
    >>> import utils2p
    >>> utils2p.find_optical_flow_file("data/mouse_kidney_raw")
    'data/mouse_kidney_raw/behData/OptFlowData/OptFlow.txt'
    
This function finds the path to the optical flow file
"OptFlow.txt" created by seven camera software and returns it.
If multiple files with this name are found, it throws
an exception unless `most_recent` is `True`,in which case
the file with the most recent change time is returned.

Parameters

directory : str
Directory in which to search.
most_recent : bool
If True, the file with the most recent change time
is returned and no exception is raised if multiple
files are present.

Returns

path : str
Path to optical flow file.

Examples


This function finds the path to the optical flow file " OptFlow . txt " created by seven camera software and returns it . If multiple files with this name are found it throws an exception unless ` most_recent ` is ` True ` in which case the file with the most recent change time is returned . Parameters directory : str Directory in which to search . most_recent : bool If True the file with the most recent change time is returned and no exception is raised if multiple files are present . Returns path : str Path to optical flow file . Examples
def find_optical_flow_file(directory, most_recent=False):
    return _find_file(directory,
                      "OptFlow.txt",
                      "optical flow",
                      most_recent=most_recent)
def find_optical_flow_file ( directory , most_recent = False ) : return _find_file ( directory , "OptFlow.txt" , "optical flow" , most_recent = most_recent )
This function finds the path to the optical flow file
"OptFlow.txt" created by seven camera software and returns it.
This function finds the path to the optical flow file " OptFlow . txt " created by seven camera software and returns it .
"""
    This function finds the path to the optical flow file
    "OptFlow.txt" created by seven camera software and returns it.
    If multiple files with this name are found, it throws
    an exception unless `most_recent` is `True`,in which case
    the file with the most recent change time is returned.

    Parameters
    ----------
    directory : str
        Directory in which to search.
    most_recent : bool
        If True, the file with the most recent change time
        is returned and no exception is raised if multiple
        files are present.

    Returns
    -------
    path : str
        Path to optical flow file.

    Examples
    --------
    >>> import utils2p
    >>> utils2p.find_optical_flow_file("data/mouse_kidney_raw")
    'data/mouse_kidney_raw/behData/OptFlowData/OptFlow.txt'
    """
directory
most_recent