utils2p/main.py
def find_seven_camera_metadata_file(directory, most_recent=False):
    """
    This function finds the path to the metadata file
    "capture_metadata.json" created by seven camera
    setup 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 capture metadata file.

    Examples
    --------
    >>> import utils2p
    >>> utils2p.find_seven_camera_metadata_file("data/mouse_kidney_raw")
    'data/mouse_kidney_raw/behData/images/capture_metadata.json'
    """
    return _find_file(directory,
                      "capture_metadata.json",
                      "seven camera capture metadata",
                      most_recent=most_recent)

    This function finds the path to the metadata file
    "capture_metadata.json" created by seven camera
    setup 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 capture metadata file.

    Examples
    --------
    >>> import utils2p
    >>> utils2p.find_seven_camera_metadata_file("data/mouse_kidney_raw")
    'data/mouse_kidney_raw/behData/images/capture_metadata.json'
    
This function finds the path to the metadata file
"capture_metadata.json" created by seven camera
setup 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 capture metadata file.

Examples


This function finds the path to the metadata file " capture_metadata . json " created by seven camera setup 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 capture metadata file . Examples
def find_seven_camera_metadata_file(directory, most_recent=False):
    return _find_file(directory,
                      "capture_metadata.json",
                      "seven camera capture metadata",
                      most_recent=most_recent)
def find_seven_camera_metadata_file ( directory , most_recent = False ) : return _find_file ( directory , "capture_metadata.json" , "seven camera capture metadata" , most_recent = most_recent )
This function finds the path to the metadata file
"capture_metadata.json" created by seven camera
setup and returns it.
This function finds the path to the metadata file " capture_metadata . json " created by seven camera setup and returns it .
"""
    This function finds the path to the metadata file
    "capture_metadata.json" created by seven camera
    setup 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 capture metadata file.

    Examples
    --------
    >>> import utils2p
    >>> utils2p.find_seven_camera_metadata_file("data/mouse_kidney_raw")
    'data/mouse_kidney_raw/behData/images/capture_metadata.json'
    """
directory
most_recent