From e07afcd37c52676dc1cb28cdeb70275e29a6adf5 Mon Sep 17 00:00:00 2001 From: Jessica Mauvais Date: Mon, 13 Jan 2025 14:51:52 -0800 Subject: [PATCH 1/2] correct spelling --- .../embedding_model.tar.gz | Bin .../test_embedding_feature.py | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename atomsci/ddm/test/integrative/{transfser_learning => transfer_learning}/embedding_model.tar.gz (100%) rename atomsci/ddm/test/integrative/{transfser_learning => transfer_learning}/test_embedding_feature.py (100%) diff --git a/atomsci/ddm/test/integrative/transfser_learning/embedding_model.tar.gz b/atomsci/ddm/test/integrative/transfer_learning/embedding_model.tar.gz similarity index 100% rename from atomsci/ddm/test/integrative/transfser_learning/embedding_model.tar.gz rename to atomsci/ddm/test/integrative/transfer_learning/embedding_model.tar.gz diff --git a/atomsci/ddm/test/integrative/transfser_learning/test_embedding_feature.py b/atomsci/ddm/test/integrative/transfer_learning/test_embedding_feature.py similarity index 100% rename from atomsci/ddm/test/integrative/transfser_learning/test_embedding_feature.py rename to atomsci/ddm/test/integrative/transfer_learning/test_embedding_feature.py From 7f8db418f12735f4d2a14e1916e8e9c1184d663f Mon Sep 17 00:00:00 2001 From: Jessica Mauvais Date: Wed, 15 Jan 2025 09:44:12 -0800 Subject: [PATCH 2/2] debug test_patch_model_dataset_key.py::test_check_data_accessibility_bad --- atomsci/ddm/test/unit/test_patch_model_dataset_key.py | 2 +- atomsci/ddm/utils/patch_model_dataset_key.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/atomsci/ddm/test/unit/test_patch_model_dataset_key.py b/atomsci/ddm/test/unit/test_patch_model_dataset_key.py index 46737c55..bee27b17 100644 --- a/atomsci/ddm/test/unit/test_patch_model_dataset_key.py +++ b/atomsci/ddm/test/unit/test_patch_model_dataset_key.py @@ -104,7 +104,7 @@ def test_check_data_accessibility_bad(): # directory with bad tarball model_path = currentdir - dataset_info = pmdk.check_data_accessibility(model_path=model_path) + dataset_info = pmdk.check_data_accessibility(model_path=model_path, verbose=True) assert len(dataset_info) == 0 if __name__ == '__main__': diff --git a/atomsci/ddm/utils/patch_model_dataset_key.py b/atomsci/ddm/utils/patch_model_dataset_key.py index d9a4a18f..2925e361 100755 --- a/atomsci/ddm/utils/patch_model_dataset_key.py +++ b/atomsci/ddm/utils/patch_model_dataset_key.py @@ -49,6 +49,8 @@ def check_data_accessibility(model_path, verbose=True): dataset_info[path] = (dataset_path, False) if verbose: print(f"{os.path.basename(path)} trained on unreadable file:\n\t{dataset_path}") + if verbose: + print(f"model_path = {model_path}, model_path_len = {len(model_paths)}, dataset_info_length = {len(dataset_info)}") return dataset_info