Skip to content

Commit

Permalink
make function private
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen authored May 17, 2023
1 parent d543bc2 commit b2d4090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyiron_base/database/filetable.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class FileTableSingleton(ABCMeta):
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(
common_path = _get_most_common_path(
path=_path, reference_paths=cls._instances.keys()
)
if common_path is not None:
Expand Down Expand Up @@ -659,7 +659,7 @@ def get_job_status_from_file(hdf5_file, job_name):
return None


def get_most_common_path(path, reference_paths):
def _get_most_common_path(path, reference_paths):
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)
Expand Down

0 comments on commit b2d4090

Please sign in to comment.