Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bedartha Goswami
uncertise
Commits
938e25e4
Commit
938e25e4
authored
May 05, 2020
by
Norbert Marwan
Browse files
Merge commit '
2fc5fc49
'
* commit '
2fc5fc49
': Update to python 3.8
parents
b9d35494
2fc5fc49
Changes
3
Show whitespace changes
Inline
Side-by-side
distributions.py
View file @
938e25e4
events.py
View file @
938e25e4
...
...
@@ -111,7 +111,7 @@ def community_strength_random_model(G, time, wsize, wstep, nsurr,
tmid
=
[]
Qsurr
,
LDsurr
=
[
np
.
zeros
((
int
(
nwind
),
int
(
nsurr
)),
"float"
)
for
i
in
range
(
2
)]
_printmsg
(
"Estimating intra-community link fraction..."
,
verbose
)
prog_bar
=
_progressbar_start
(
nwind
*
nsurr
,
pbar
)
prog_bar
=
_progressbar_start
(
nwind
*
nsurr
,
pbar
)
count
=
0
for
i
in
range
(
int
(
nwind
)):
k
=
i
*
wstep
...
...
@@ -174,4 +174,3 @@ def holm(pvals, alpha=0.05, corr_type="dunn"):
except
IndexError
:
idx
=
[]
return
idx
networks.py
View file @
938e25e4
...
...
@@ -132,7 +132,7 @@ def _precnet_check_limits(dist_list, var_span, ld, iqr,
if
not
cond
:
str0
=
"Target link density could not be bracketed!"
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
])
print
(
str0
+
"
\n
"
+
str1
+
"
\n
"
+
str2
)
return
cond
,
ld_lims
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment