Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
8b2d4b66
Commit
8b2d4b66
authored
Sep 16, 2015
by
Tiago Peixoto
Browse files
Fix test in minimize_nested_blockmodel_dl()
parent
44d44d06
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/community/nested_blockmodel.py
View file @
8b2d4b66
...
...
@@ -297,11 +297,11 @@ class NestedBlockState(object):
assert
self
.
levels
[
j
].
B
==
self
.
levels
[
j
+
1
].
N
,
"inconsistency at level %d after %s of level %d, different sizes"
%
(
j
+
1
,
op
,
l
)
# verify hierarchy / clabel consistency
clabel
=
self
.
__project_partition
(
0
,
j
)
self
.
levels
[
0
].
clabel
.
fa
=
self
.
clabel
.
fa
assert
self
.
levels
[
0
].
_BlockState__check_clabel
(),
"inconsistency at level %d after %s of level %d, clabel invalidated"
%
(
j
+
1
,
op
,
l
)
self
.
levels
[
0
].
clabel
.
fa
=
0
#
#
verify hierarchy / clabel consistency
#
clabel = self.__project_partition(0, j)
#
self.levels[0].clabel.fa = self.clabel.fa
#
assert self.levels[0]._BlockState__check_clabel(), "inconsistency at level %d after %s of level %d, clabel invalidated" % (j + 1, op, l)
#
self.levels[0].clabel.fa = 0
# verify hierarchy consistency
clabel
=
self
.
__project_partition
(
j
,
j
+
1
)
...
...
Write
Preview
Supports
Markdown
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