Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle .ndim and [:, np.newaxis] on VariableView #1412

Merged
merged 1 commit into from
May 18, 2022

Commits on May 5, 2022

  1. Handle .ndim and [:, np.newaxis] on VariableView

    These are used when handing a VariableView directly to matplotlib, e.g.
    for spike_mon.i (an expression like spike_mon.t/ms directly results in
    an ndarray and is therefore not concerned). This problem was introduced
    with matplotlib 3.5.2, previous versions converted VariableView along
    the way with a call to np.asanyarray.
    
    Fixes #1409
    mstimberg committed May 5, 2022
    Configuration menu
    Copy the full SHA
    0b8aec2 View commit details
    Browse the repository at this point in the history