Skip to content

Commit

Permalink
Merge pull request #2662 from Jannik-Grundler/pynest_example_commment
Browse files Browse the repository at this point in the history
Add comment on min delay
  • Loading branch information
heplesser committed Apr 26, 2023
2 parents 84a531a + e714178 commit 8aec8b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pynest/examples/Potjans_2014/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,9 @@ def __connect_neuronal_populations(self):
mean=self.net_dict['delay_matrix_mean'][i][j],
std=(self.net_dict['delay_matrix_mean'][i][j] *
self.net_dict['delay_rel_std'])),
# resulting minimum delay is equal to resolution, see:
# https://nest-simulator.readthedocs.io/en/latest/nest_behavior
# /random_numbers.html#rounding-effects-when-randomizing-delays
min=nest.resolution - 0.5 * nest.resolution,
max=np.Inf)}

Expand Down Expand Up @@ -515,6 +518,9 @@ def __connect_thalamic_stim_input(self):
mean=self.stim_dict['delay_th_mean'],
std=(self.stim_dict['delay_th_mean'] *
self.stim_dict['delay_th_rel_std'])),
# resulting minimum delay is equal to resolution, see:
# https://nest-simulator.readthedocs.io/en/latest/nest_behavior
# /random_numbers.html#rounding-effects-when-randomizing-delays
min=nest.resolution - 0.5 * nest.resolution,
max=np.Inf)}

Expand Down

0 comments on commit 8aec8b8

Please sign in to comment.