Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dirk.wintergruen
network_extensions
Commits
c0162c64
Commit
c0162c64
authored
Jul 30, 2021
by
dirk.wintergruen
Browse files
added debug statements
parent
b51c4f50
Changes
1
Hide whitespace changes
Inline
Side-by-side
network_extensions/igraphx/__init__.py
View file @
c0162c64
...
...
@@ -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)()
...
...
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