From 1571425ab05776e47abc7d05351ce61a20a65d2c Mon Sep 17 00:00:00 2001 From: Zach Wright Date: Tue, 17 Dec 2024 12:58:49 -0500 Subject: [PATCH] KPMP-5665: keep expression, skip derived --- scripts/packageChecker/packageChecker.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/scripts/packageChecker/packageChecker.py b/scripts/packageChecker/packageChecker.py index 18369e76..430180cb 100644 --- a/scripts/packageChecker/packageChecker.py +++ b/scripts/packageChecker/packageChecker.py @@ -70,7 +70,7 @@ def find_empty_packages(self, move_derived=False): else: for file in files: ext = os.path.splitext(file) - if not ext[1] == ".bfmemo" and not "expression_matrix" in ext[0]: + if not ext[1] == ".bfmemo" and not "derived" in ext[0]: actual_file_names.append(file) if file == "metadata.json" and len(files) == 1: @@ -142,16 +142,16 @@ def move_file_to_derived(self, package_directory, file_name): file_path = package_directory + "/" + file_name print(f"Moving file '{file_path}' to '{derived_dir}'.") - if not os.path.exists(derived_dir): - os.makedirs(derived_dir) - - try: - shutil.move(file_path, derived_dir) - print(f"File '{file_path}' moved to '{derived_dir}' successfully.") - except FileNotFoundError: - print(f"Error: File '{source_file}' not found.") - except Exception as e: - print(f"An error occurred: {e}") + # if not os.path.exists(derived_dir): + # os.makedirs(derived_dir) + # + # try: + # shutil.move(file_path, derived_dir) + # print(f"File '{file_path}' moved to '{derived_dir}' successfully.") + # except FileNotFoundError: + # print(f"Error: File '{source_file}' not found.") + # except Exception as e: + # print(f"An error occurred: {e}") if __name__ == "__main__":