qcodes/dataset/guid_helpers.py
def guids_from_dbs(
    db_paths: Iterable[Path],
) -> Tuple[Dict[Path, List[str]], Dict[str, Path]]:
    """
    Extract all guids from the supplied database paths.

    Args:
        db_paths: Path or str or directory where to search

    Returns:
        Tuple of Dictionary mapping paths to lists of guids as strings
        and Dictionary mapping guids to db paths.
    """
    dbdict = {}
    for p in db_paths:
        try:
            conn = connect(str(p))
            dbdict[p] = get_guids_from_run_spec(conn)
        except (RuntimeError, DatabaseError) as e:
            print(e)
        finally:
            conn.close()
            gc.collect()
    guiddict = {}
    for dbpath, guids in dbdict.items():
        guiddict.update({guid: dbpath for guid in guids})
    return dbdict, guiddict

    Extract all guids from the supplied database paths.

    Args:
        db_paths: Path or str or directory where to search

    Returns:
        Tuple of Dictionary mapping paths to lists of guids as strings
        and Dictionary mapping guids to db paths.
    
Extract all guids from the supplied database paths.
Extract all guids from the supplied database paths .
def guids_from_dbs(
    db_paths: Iterable[Path],
) -> Tuple[Dict[Path, List[str]], Dict[str, Path]]:
    dbdict = {}
    for p in db_paths:
        try:
            conn = connect(str(p))
            dbdict[p] = get_guids_from_run_spec(conn)
        except (RuntimeError, DatabaseError) as e:
            print(e)
        finally:
            conn.close()
            gc.collect()
    guiddict = {}
    for dbpath, guids in dbdict.items():
        guiddict.update({guid: dbpath for guid in guids})
    return dbdict, guiddict
def guids_from_dbs ( db_paths : Iterable [ Path ] , ) -> Tuple [ Dict [ Path , List [ str ] ] , Dict [ str , Path ] ] : dbdict = { } for p in db_paths : try : conn = connect ( str ( p ) ) dbdict [ p ] = get_guids_from_run_spec ( conn ) except ( RuntimeError , DatabaseError ) as e : print ( e ) finally : conn . close ( ) gc . collect ( ) guiddict = { } for dbpath , guids in dbdict . items ( ) : guiddict . update ( { guid : dbpath for guid in guids } ) return dbdict , guiddict
Extract all guids from the supplied database paths.
Extract all guids from the supplied database paths .
"""
    Extract all guids from the supplied database paths.

    Args:
        db_paths: Path or str or directory where to search

    Returns:
        Tuple of Dictionary mapping paths to lists of guids as strings
        and Dictionary mapping guids to db paths.
    """
Tuple of Dictionary mapping paths to lists of guids as strings
and Dictionary mapping guids to db paths.
Tuple of Dictionary mapping paths to lists of guids as strings and Dictionary mapping guids to db paths .
db_paths
Iterable[Path]
Path or str or directory where to search
Path or str or directory where to search