diff --git a/src/km3irf/get_file.py b/src/km3irf/get_file.py index 940aac5b3f496bfc88e2c6f4d8fcbc2c67f1a2c2..8eab25eb3eabffaa513c2fed3fe45da9cd9e419c 100644 --- a/src/km3irf/get_file.py +++ b/src/km3irf/get_file.py @@ -5,15 +5,14 @@ from os import listdir from os.path import isfile, join, dirname def list_of_files(): - # print(__file__) + '''return list of fits files''' mypath = dirname(__file__) + "/data" - # print(mypath) onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))] return onlyfiles - # print(onlyfiles) + def path_to(file_name: str): '''return path to the chosen file''' current_path = dirname(__file__) + f"/data/{file_name}" - return current_path \ No newline at end of file + return current_path