utils2p/main.py
def find_raw_file(directory, most_recent=False):
    """
    This function finds the path to the raw file
    "Image_0001_0001.raw" created by ThorImage 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 raw file.

    Examples
    --------
    >>> import utils2p
    >>> utils2p.find_raw_file("data/mouse_kidney_raw")
    'data/mouse_kidney_raw/2p/Untitled_001/Image_0001_0001.raw'
    """
    return _find_file(directory,
                      "Image_0001_0001.raw",
                      "raw",
                      most_recent=most_recent)

    This function finds the path to the raw file
    "Image_0001_0001.raw" created by ThorImage 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 raw file.

    Examples
    --------
    >>> import utils2p
    >>> utils2p.find_raw_file("data/mouse_kidney_raw")
    'data/mouse_kidney_raw/2p/Untitled_001/Image_0001_0001.raw'
    
This function finds the path to the raw file
"Image_0001_0001.raw" created by ThorImage 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 raw file.

Examples


This function finds the path to the raw file " Image_0001_0001 . raw " created by ThorImage 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 raw file . Examples
def find_raw_file(directory, most_recent=False):
    return _find_file(directory,
                      "Image_0001_0001.raw",
                      "raw",
                      most_recent=most_recent)
def find_raw_file ( directory , most_recent = False ) : return _find_file ( directory , "Image_0001_0001.raw" , "raw" , most_recent = most_recent )
This function finds the path to the raw file
"Image_0001_0001.raw" created by ThorImage and returns it.
This function finds the path to the raw file " Image_0001_0001 . raw " created by ThorImage and returns it .
"""
    This function finds the path to the raw file
    "Image_0001_0001.raw" created by ThorImage 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 raw file.

    Examples
    --------
    >>> import utils2p
    >>> utils2p.find_raw_file("data/mouse_kidney_raw")
    'data/mouse_kidney_raw/2p/Untitled_001/Image_0001_0001.raw'
    """
directory
most_recent