utils2p/main.py
def find_sync_metadata_file(directory, most_recent=False):
    """
    This function finds the path to the synchronization
    metadata file "ThorRealTimeDataSettings.xml" created
    by ThorSync. 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 synchronization metadata file.

    Examples
    --------
    >>> import utils2p
    >>> utils2p.find_sync_metadata_file("data/mouse_kidney_raw")
    'data/mouse_kidney_raw/2p/Sync-025/ThorRealTimeDataSettings.xml'

    """
    return _find_file(directory,
                      "ThorRealTimeDataSettings.xml",
                      "synchronization metadata",
                      most_recent=most_recent)

    This function finds the path to the synchronization
    metadata file "ThorRealTimeDataSettings.xml" created
    by ThorSync. 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 synchronization metadata file.

    Examples
    --------
    >>> import utils2p
    >>> utils2p.find_sync_metadata_file("data/mouse_kidney_raw")
    'data/mouse_kidney_raw/2p/Sync-025/ThorRealTimeDataSettings.xml'

    
This function finds the path to the synchronization
metadata file "ThorRealTimeDataSettings.xml" created
by ThorSync. 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 synchronization metadata file.

Examples


This function finds the path to the synchronization metadata file " ThorRealTimeDataSettings . xml " created by ThorSync . 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 synchronization metadata file . Examples
def find_sync_metadata_file(directory, most_recent=False):
    return _find_file(directory,
                      "ThorRealTimeDataSettings.xml",
                      "synchronization metadata",
                      most_recent=most_recent)
def find_sync_metadata_file ( directory , most_recent = False ) : return _find_file ( directory , "ThorRealTimeDataSettings.xml" , "synchronization metadata" , most_recent = most_recent )
This function finds the path to the synchronization
metadata file "ThorRealTimeDataSettings.xml" created
by ThorSync.
This function finds the path to the synchronization metadata file " ThorRealTimeDataSettings . xml " created by ThorSync .
"""
    This function finds the path to the synchronization
    metadata file "ThorRealTimeDataSettings.xml" created
    by ThorSync. 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 synchronization metadata file.

    Examples
    --------
    >>> import utils2p
    >>> utils2p.find_sync_metadata_file("data/mouse_kidney_raw")
    'data/mouse_kidney_raw/2p/Sync-025/ThorRealTimeDataSettings.xml'

    """
directory
most_recent