Skip to content

Commit 11c3dc4

Browse files
committed
refactor(docs): update import statements for brainpy and add changelog file
1 parent 2cbc6b0 commit 11c3dc4

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

brainpy/_synapse.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ class AMPA(Synapse):
122122
$$
123123
124124
where:
125+
125126
- $g$ represents the fraction of receptors in the open state
126127
- $\alpha$ is the binding rate constant [ms^-1 mM^-1]
127128
- $\beta$ is the unbinding rate constant [ms^-1]

brainpy/_synaptic_projection.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,22 +247,22 @@ class AsymmetryGapJunction(Projection):
247247
248248
Examples
249249
--------
250-
>>> import brainstate
250+
>>> import brainpy
251251
>>> import brainunit as u
252252
>>> import numpy as np
253253
>>>
254254
>>> # Create two neuron populations
255255
>>> n_neurons = 100
256-
>>> pre_pop = brainstate.nn.LIF(n_neurons, V_rest=-70*u.mV, V_threshold=-50*u.mV)
257-
>>> post_pop = brainstate.nn.LIF(n_neurons, V_rest=-70*u.mV, V_threshold=-50*u.mV)
256+
>>> pre_pop = brainpy.LIF(n_neurons, V_rest=-70*u.mV, V_threshold=-50*u.mV)
257+
>>> post_pop = brainpy.LIF(n_neurons, V_rest=-70*u.mV, V_threshold=-50*u.mV)
258258
>>> pre_pop.init_state()
259259
>>> post_pop.init_state()
260260
>>>
261261
>>> # Create asymmetric gap junction with different weights in each direction
262262
>>> weights = np.ones((n_neurons, 2)) * u.nS
263263
>>> weights[:, 0] *= 2.0 # Double weight in pre->post direction
264264
>>>
265-
>>> gap_junction = brainstate.nn.AsymmetryGapJunction(
265+
>>> gap_junction = brainpy.AsymmetryGapJunction(
266266
... pre=pre_pop,
267267
... pre_state='V',
268268
... post=post_pop,

changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
4+
## Version 3.0.0
5+
6+
7+

0 commit comments

Comments
 (0)