diff --git a/pyiron_base/database/filetable.py b/pyiron_base/database/filetable.py index 715d1073a..2bad3252b 100644 --- a/pyiron_base/database/filetable.py +++ b/pyiron_base/database/filetable.py @@ -59,8 +59,7 @@ def __call__(cls, index_from): _path = os.path.abspath(os.path.expanduser(index_from)) if _path not in cls._instances: 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: cls._instances[_path] = super(FileTableSingleton, cls).__call__( @@ -661,9 +660,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: