Commit c0162c64 authored by dirk.wintergruen's avatar dirk.wintergruen
Browse files

added debug statements

parent b51c4f50
......@@ -1446,6 +1446,8 @@ def calcTop(
:param kwargs: kwargs to be passed to the centrality to function see above
:return:
"""
logger.debug(f"Calculating tops for func: {func}, normalize: {normalize}")
logger.debug(f"Graph with {len(ng.es)} edges and {len(ng.vs)} nodes.")
if mode == "edge":
objects = ng.es
......@@ -1472,8 +1474,12 @@ def calcTop(
vals = vals - np.mean(vals)
elif normalize == "median":
vals = vals - np.median(vals)
else:
logger.debug("no normalisation")
objects[func] = vals
logger.debug(f"Max val: {max(vals)} , Min val: {min(vals)}")
for n in objects:
# n[func]=getattr(n,func)()
......
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