Giter VIP home page Giter VIP logo

Comments (10)

Rock-L21 avatar Rock-L21 commented on June 12, 2024

import brainpy as bp
import brainmodels
import matplotlib.pyplot as plt

neu1 = brainmodels.neurons.HH(1, monitors=['V'], name='X')
neu2 = brainmodels.neurons.HH(1, monitors=['V'])
syn1 = brainmodels.synapses.AMPA(neu1, neu2, bp.connect.All2All(), E=0., monitors=['s'])
net = bp.Network(neu1, syn1, neu2)
net.run(150., inputs=[('X.input', 5.)])

fig, gs = bp.visualize.get_figure(2, 1, 3, 8)
fig.add_subplot(gs[0, 0])
plt.plot(neu1.mon.ts, neu1.mon.V, label='pre-V')
plt.plot(neu2.mon.ts, neu2.mon.V, label='post-V')
plt.legend()

The code I run at this time.
https://brainmodels.readthedocs.io/en/latest/apis/synapses/ampa.html

from brainpy.

Rock-L21 avatar Rock-L21 commented on June 12, 2024

image

from brainpy.

Rock-L21 avatar Rock-L21 commented on June 12, 2024

image

from brainpy.

chaoming0625 avatar chaoming0625 commented on June 12, 2024

So thanks for your report, please update brainpy to 1.1.0rc6 via

> pip install brain-py=1.1.0rc6

Please check, thanks.

from brainpy.

Rock-L21 avatar Rock-L21 commented on June 12, 2024

Thank you very much, a new problem appeared after installing brain-py=1.1.0rc6.

from brainpy.

Rock-L21 avatar Rock-L21 commented on June 12, 2024

image

from brainpy.

Rock-L21 avatar Rock-L21 commented on June 12, 2024

If I install ‘brainpy-simulator’ there will be new problem
image

from brainpy.

Rock-L21 avatar Rock-L21 commented on June 12, 2024

Please again, can you tell me your python environment and all packages。

from brainpy.

chaoming0625 avatar chaoming0625 commented on June 12, 2024

Dear @Rock-L21 , there is a bug in the monitor of AMPA. Please change the line

syn1 = brainmodels.synapses.AMPA(neu1, neu2, bp.connect.All2All(), E=0., monitors=['s'])

to

syn1 = brainmodels.synapses.AMPA(neu1, neu2, bp.connect.All2All(), E=0., monitors=['g'])

from brainpy.

Rock-L21 avatar Rock-L21 commented on June 12, 2024

Thank you again, the problem has been solved.

from brainpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.