Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
895d7801
Commit
895d7801
authored
Aug 13, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PartitionTable.filled()
parent
95fecbfb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
neo/lib/pt.py
neo/lib/pt.py
+1
-0
neo/master/pt.py
neo/master/pt.py
+2
-0
No files found.
neo/lib/pt.py
View file @
895d7801
...
...
@@ -194,6 +194,7 @@ class PartitionTable(object):
for
cell
in
row
:
if
cell
.
getNode
()
==
node
:
row
.
remove
(
cell
)
self
.
num_filled_rows
-=
not
row
if
not
cell
.
isFeeding
():
self
.
count_dict
[
node
]
-=
1
break
...
...
neo/master/pt.py
View file @
895d7801
...
...
@@ -136,6 +136,7 @@ class PartitionTable(neo.lib.pt.PartitionTable):
self
.
count_dict
[
cell
.
getNode
()]
+=
1
for
node
in
node_list
:
self
.
count_dict
.
pop
(
node
,
None
)
self
.
num_filled_rows
=
len
(
filter
(
None
,
self
.
partition_list
))
return
change_list
def
load
(
self
,
ptid
,
row_list
,
nm
):
...
...
@@ -278,6 +279,7 @@ class PartitionTable(neo.lib.pt.PartitionTable):
state
=
CellStates
.
DISCARDED
row
.
remove
(
cell
)
changed_list
.
append
((
offset
,
cell
.
getUUID
(),
state
))
assert
self
.
num_filled_rows
==
len
(
filter
(
None
,
self
.
partition_list
))
return
changed_list
def
outdate
(
self
,
lost_node
=
None
):
...
...
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