handle_sample function¶
(Shortest import: from brian2.synapses.parse_synaptic_generator_syntax import handle_sample)
- brian2.synapses.parse_synaptic_generator_syntax.handle_sample(*args, **kwds)[source]¶
Checks the arguments/keywords for the sample iterator
Should have 1-3 positional arguments and 1 keyword argument (either p or size).
Returns a dict with keys
low, high, step, sample_size, p, size. Default values arelow=0,step=1`. Sample size will be either ``'random'or'fixed'. In the first case,pwill have a value and size will beNone(and vice versa for the second case).