Skip to content

Commit

Permalink
Add offset to getSpGid in case of load balance
Browse files Browse the repository at this point in the history
  • Loading branch information
jorblancoa committed Apr 15, 2024
1 parent dd9a0f8 commit 7407274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neurodamus/cell_distributor.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ def getSpGid(self, gid):
"""
manager = self._find_manager(gid)
if manager._binfo:
return manager._binfo.thishost_gid(gid - manager.local_nodes.offset)
gid_offset = manager.local_nodes.offset
return manager._binfo.thishost_gid(gid - gid_offset) + gid_offset
return gid

def getPopulationInfo(self, gid):
Expand Down

0 comments on commit 7407274

Please sign in to comment.