Commit 938e25e4 authored by Norbert Marwan's avatar Norbert Marwan
Browse files

Merge commit '2fc5fc49'

* commit '2fc5fc49':
  Update to python 3.8
parents b9d35494 2fc5fc49
...@@ -111,7 +111,7 @@ def community_strength_random_model(G, time, wsize, wstep, nsurr, ...@@ -111,7 +111,7 @@ def community_strength_random_model(G, time, wsize, wstep, nsurr,
tmid = [] tmid = []
Qsurr, LDsurr = [np.zeros((int(nwind), int(nsurr)), "float") for i in range(2)] Qsurr, LDsurr = [np.zeros((int(nwind), int(nsurr)), "float") for i in range(2)]
_printmsg("Estimating intra-community link fraction...", verbose) _printmsg("Estimating intra-community link fraction...", verbose)
prog_bar = _progressbar_start(nwind*nsurr, pbar) prog_bar = _progressbar_start(nwind * nsurr, pbar)
count = 0 count = 0
for i in range(int(nwind)): for i in range(int(nwind)):
k = i * wstep k = i * wstep
...@@ -174,4 +174,3 @@ def holm(pvals, alpha=0.05, corr_type="dunn"): ...@@ -174,4 +174,3 @@ def holm(pvals, alpha=0.05, corr_type="dunn"):
except IndexError: except IndexError:
idx = [] idx = []
return idx return idx
...@@ -132,7 +132,7 @@ def _precnet_check_limits(dist_list, var_span, ld, iqr, ...@@ -132,7 +132,7 @@ def _precnet_check_limits(dist_list, var_span, ld, iqr,
if not cond: if not cond:
str0 = "Target link density could not be bracketed!" str0 = "Target link density could not be bracketed!"
str1 = "Increase initial THR bracket or change target LD." str1 = "Increase initial THR bracket or change target LD."
str2 = "LD = %.3f for THR = %.2E and %.3f for THR = %.2f"\ str2 = "LD = %.3f for THR = %.2E and %.3f for THR = %.2f" \
% (ld_lims[0], thr_lims[0], ld_lims[1], thr_lims[1]) % (ld_lims[0], thr_lims[0], ld_lims[1], thr_lims[1])
print(str0 + "\n" + str1 + "\n" + str2) print(str0 + "\n" + str1 + "\n" + str2)
return cond, ld_lims return cond, ld_lims
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment