From b07f13f9cc37fe1abde91b36abbaf0ce98dd763d Mon Sep 17 00:00:00 2001 From: Brad Date: Wed, 4 Nov 2020 14:29:22 -0500 Subject: [PATCH 1/2] add shutil copytree of the results directories for mancovan to transfer --- coinstac_mancova/remote.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coinstac_mancova/remote.py b/coinstac_mancova/remote.py index 53011b7..ffc9afa 100644 --- a/coinstac_mancova/remote.py +++ b/coinstac_mancova/remote.py @@ -130,6 +130,7 @@ def mancova_aggregate(args): stat_results[multivariate_out_dir] = list( glob.glob(os.path.join(multivariate_out_dir, "**", "*.html")) ) + shutil.copytree(multivariate_out_dir, os.path.join(state["transferDirectory"], os.path.basename(multivariate_out_dir)) except Exception as e: ut.log( "Multivariate analysis raised an exception, likely because of bad conditioning. More subjects are required. Full error string {err}".format( @@ -199,6 +200,7 @@ def mancova_aggregate(args): stat_results[univariate_out_dir][key] = list( glob.glob(os.path.join(univariate_out_dir, "**", "*.html")) ) + shutil.copytree(univariate_out_dir, os.path.join(state["transferDirectory"], os.path.basename(univariate_out_dir)) except Exception as e: ut.log( "Univariate analysis ({key}, {variable}) raised an exception. Full error string {err}".format( From ef4e233e5f6067acad857cd5a6b11837c664101b Mon Sep 17 00:00:00 2001 From: Brad Date: Wed, 4 Nov 2020 15:56:51 -0500 Subject: [PATCH 2/2] syntax fix --- coinstac_mancova/remote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coinstac_mancova/remote.py b/coinstac_mancova/remote.py index ffc9afa..5215e30 100644 --- a/coinstac_mancova/remote.py +++ b/coinstac_mancova/remote.py @@ -130,7 +130,7 @@ def mancova_aggregate(args): stat_results[multivariate_out_dir] = list( glob.glob(os.path.join(multivariate_out_dir, "**", "*.html")) ) - shutil.copytree(multivariate_out_dir, os.path.join(state["transferDirectory"], os.path.basename(multivariate_out_dir)) + shutil.copytree(multivariate_out_dir, os.path.join(state["transferDirectory"], os.path.basename(multivariate_out_dir))) except Exception as e: ut.log( "Multivariate analysis raised an exception, likely because of bad conditioning. More subjects are required. Full error string {err}".format( @@ -200,7 +200,7 @@ def mancova_aggregate(args): stat_results[univariate_out_dir][key] = list( glob.glob(os.path.join(univariate_out_dir, "**", "*.html")) ) - shutil.copytree(univariate_out_dir, os.path.join(state["transferDirectory"], os.path.basename(univariate_out_dir)) + shutil.copytree(univariate_out_dir, os.path.join(state["transferDirectory"], os.path.basename(univariate_out_dir))) except Exception as e: ut.log( "Univariate analysis ({key}, {variable}) raised an exception. Full error string {err}".format(