NeuralEnsemble/PyNN — pull request #293 by tomish (2014-04-02 18:18:25+00:00)
Title: sort neurons before recording by Brian

Fixes an issue where plots of recorded neurons would not match their labels.
This is due to:

ids = set([id for id in ids if id.local])

in PyNN / src / recording / __init__.py, line 197, which in some cases changes the order of neurons, e.g. numpy.fromiter(set(numpy.array([13,14,15,16])) becomes array([16, 13, 14, 15]). Re-sorting the array before sending it to the Brian recording device fixed this for me.