From 69098f5ac492159026e80124da1119f6d8d60f83 Mon Sep 17 00:00:00 2001 From: Jim Pollaro Date: Mon, 4 Nov 2024 12:56:32 -0600 Subject: [PATCH] Got a little too excited switching things over enums. forgot which ones work where. --- +nla/+net/+result/NetworkTestResult.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/+nla/+net/+result/NetworkTestResult.m b/+nla/+net/+result/NetworkTestResult.m index 88d88035..9ee6bde2 100644 --- a/+nla/+net/+result/NetworkTestResult.m +++ b/+nla/+net/+result/NetworkTestResult.m @@ -315,12 +315,13 @@ function createPValueTriMatrices(obj, number_of_networks, test_method) end function probability = getPValueNames(test_method, test_name) + import nla.NetworkLevelMethod noncorrelation_input_tests = ["chi_squared", "hypergeometric"]; non_correlation_test = any(strcmp(test_name, noncorrelation_input_tests)); probability = "two_sample_p_value"; if isequal(non_correlation_test, false) - if isequal(test_method, "no_permutations") || isequal(test_method, "within_network_pair") + if isequal(test_method, NetworkLevelMethod.NO_PERMUTATIONS) || isequal(test_method, NetworkLevelMethod.WITHIN_NETWORK_PAIR) probability = "single_sample_p_value"; end end