From a24c568b15be4e13f4ca436be6401a3f64b6ee94 Mon Sep 17 00:00:00 2001 From: pyiron-runner Date: Wed, 17 May 2023 00:41:07 +0000 Subject: [PATCH] Format black --- pyiron_base/database/filetable.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pyiron_base/database/filetable.py b/pyiron_base/database/filetable.py index ea8857082..54aee2f08 100644 --- a/pyiron_base/database/filetable.py +++ b/pyiron_base/database/filetable.py @@ -58,8 +58,7 @@ class FileTableSingleton(ABCMeta): @classmethod def _get_common_fileindex(cls, path): common_path = get_most_common_path( - path=path, - reference_paths=cls._instances.keys() + path=path, reference_paths=cls._instances.keys() ) if common_path is not None: return super(FileTableSingleton, cls).__call__( @@ -67,9 +66,7 @@ def _get_common_fileindex(cls, path): fileindex=cls._instances[common_path]._fileindex.open(path), ) else: - return super(FileTableSingleton, cls).__call__( - index_from=path - ) + return super(FileTableSingleton, cls).__call__(index_from=path) def __call__(cls, index_from): _path = os.path.abspath(os.path.expanduser(index_from)) @@ -665,9 +662,7 @@ def get_job_status_from_file(hdf5_file, job_name): def get_most_common_path(path, reference_paths): - path_match_lst = [ - p for p in reference_paths if os.path.commonpath([path, p]) == p - ] + path_match_lst = [p for p in reference_paths if os.path.commonpath([path, p]) == p] if len(path_match_lst) > 0: return max(path_match_lst, key=len) else: