def METHOD_NAME(self, simulation, simdata):
    blocks = []
    for cm, cs in simulation.get_connectivity_sets().items():
        pre, _ = cs.load_connections().as_globals().all()
        pre[:, 0] += simdata.cid_offsets[cs.pre_type]
        blocks.append(pre[:, :2])
    if blocks:
        blocks = np.unique(np.concatenate(blocks), axis=0)
    return {
        tuple(loc): gid + simdata.alloc[0]
        for gid, loc in zip(itertools.count(), blocks)
    }