Skip to content

Commit

Permalink
Apply rounding fix to MAM
Browse files Browse the repository at this point in the history
  • Loading branch information
otcathatsya committed Jun 19, 2024
1 parent abc43f9 commit f3c7a46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion multi-area-model/multiarea_model/simulation_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ def connect(simulation,
s = network.distances[target_area.name][source_area.name]
mean_delay = s / v

dt = simulation.params['dt']
syn_spec = {
'synapse_model': 'static_synapse',
'weight': nest.math.redraw(
Expand All @@ -671,7 +672,7 @@ def connect(simulation,
mean=mean_delay,
std=mean_delay * network.params['delay_params']['delay_rel']
),
min=simulation.params['dt'],
min=dt - 0.5 * dt,
max=np.Inf)}

nest.Connect(source_area.gids[source],
Expand Down

0 comments on commit f3c7a46

Please sign in to comment.