Skip to content

PyNN microcircuit plotting issue #4

Open

Description

@neworderofjamie

Hello again :)

I found another issue with this model (quite possibly already fixed by @apdavison) - the plotting code calculates the rates based on the wrong population sizes. This is due to the order n_rec is accessed in in plotting.py being different to the order it is created in microcircuit.py (pretty sure, at least in Python 2.7, the order items of a dictionary are iterated in is implementation-dependent).

My fix is as follows (sorry, cba to fork and do this properly):

In microcircuit.py

from six import iteritems
....
n_rec = {layer : {pop : round(n * N_scaling * frac_record_spikes) for pop, n in iteritems(pops)}
             for layer, pops in iteritems(N_full)}

Then in plotting.py:

num_pop_rec = n_rec[layer_list[layer]][pop_list[pop]]

Cheers

Jamie

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions