likelihood_files_are_close

HSTB.kluster.fqpr_intelligence.likelihood_files_are_close(filepaths, compare_path)

Find all of the paths in filepaths that are in the same directory alongside compare_paths

filenames = [‘testthis’, ‘testoutthisthing’, ‘whataboutthisguy’] compare_file = ‘testout’ likelihood_file_name_match(filenames, compare_file) [‘testthis’]

Parameters
  • filepaths (list) – list of file paths

  • compare_path (str) – file path we want to use to see which filepaths are in the same directory

Returns

list of filepaths that are in the same directory as compare_path

Return type

list