utils2p/main.py
def find_sync_file(directory, most_recent=False):
    """
    This function finds the path to the sync file
    "Episode001.h5" created by ThorSync 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 sync file.

    Examples
    --------
    >>> import utils2p
    >>> utils2p.find_sync_file("data/mouse_kidney_z_stack")
    'data/mouse_kidney_z_stack/Episode001.h5'
    """
    return _find_file(directory,
                      "Episode001.h5",
                      "synchronization",
                      most_recent=most_recent)

    This function finds the path to the sync file
    "Episode001.h5" created by ThorSync 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 sync file.

    Examples
    --------
    >>> import utils2p
    >>> utils2p.find_sync_file("data/mouse_kidney_z_stack")
    'data/mouse_kidney_z_stack/Episode001.h5'
    
This function finds the path to the sync file
"Episode001.h5" created by ThorSync 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 sync file.

Examples


This function finds the path to the sync file " Episode001 . h5 " created by ThorSync 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 sync file . Examples
def find_sync_file(directory, most_recent=False):
    return _find_file(directory,
                      "Episode001.h5",
                      "synchronization",
                      most_recent=most_recent)
def find_sync_file ( directory , most_recent = False ) : return _find_file ( directory , "Episode001.h5" , "synchronization" , most_recent = most_recent )
This function finds the path to the sync file
"Episode001.h5" created by ThorSync and returns it.
This function finds the path to the sync file " Episode001 . h5 " created by ThorSync and returns it .
"""
    This function finds the path to the sync file
    "Episode001.h5" created by ThorSync 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 sync file.

    Examples
    --------
    >>> import utils2p
    >>> utils2p.find_sync_file("data/mouse_kidney_z_stack")
    'data/mouse_kidney_z_stack/Episode001.h5'
    """
directory
most_recent