Commit a3178189 authored by Bedartha Goswami's avatar Bedartha Goswami
Browse files

removed LD as output of community_strength_data

parent cc36af86
......@@ -6,7 +6,7 @@ A suite of functions that assist in carrying out the event-detection analysis
"""
# Created: Thu May 26, 2016 03:50PM
# Last modified: Tue Jan 09, 2018 02:34PM
# Last modified: Wed Jan 10, 2018 12:21AM
# Copyright: Bedartha Goswami <goswami@pik-potsdam.de>
import numpy as np
......@@ -95,7 +95,7 @@ def community_strength_data(G, time, ld, wsize, wstep,
LD[i] = link_density(G_)
_progressbar_update(prog_bar, i)
_progressbar_finish(prog_bar)
return Q, LD, tmid
return Q, tmid
def community_strength_random_model(G, time, ld, wsize, wstep, nsurr,
......@@ -138,7 +138,7 @@ def community_strength_random_model(G, time, ld, wsize, wstep, nsurr,
LDsurr[i] = np.nan
_progressbar_update(prog_bar, count)
_progressbar_finish(prog_bar)
return Qsurr, LDsurr, tmid
return Qsurr, tmid, LDsurr
def pvalues(Q, Qsurr, nwind, verbose=False, pbar=False):
......
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