5.1.1.2. ProvidesRandomDendriticLocations¶
-
class
ProvidesRandomDendriticLocations[source]¶ Bases:
sciunit.capabilities.CapabilityIndicates that the model provides a list of randomly selected locations on the trunk (primary apical dendrite) to be tested
Methods Summary
get_random_locations(num, seed, dist_range, …)This function must be implemented by the model.
get_random_locations_multiproc(num, seed, …)This function is called by the test and calls the get_random_locations() function.
Methods Documentation
-
get_random_locations(num, seed, dist_range, trunk_origin)[source]¶ This function must be implemented by the model.
Must return a list of lists [dendrite, seg.x]. Eg. : [[‘dendrite[31]’, 0.5], [‘dendrite[117]’, 0.8333333333333333], [‘dendrite[117]’, 0.16666666666666666], [‘dendrite[77]’, 0.5], [‘dendrite[99]’, 0.5]], and a dictionary where the keys are the locations, the value is the actual distance of the location from the soma. Eg.: {(‘dendrite[95]’, 0.5): 191.4537639215934, (‘dendrite[91]’, 0.5): 186.10161451767556}
- Parameters
num (int) – the number of dendritic locations to be selected
seed (float) – the random seed
dist_range (list) – containing the mimnimum and maximum distance from the soma. Eg.: [50,150]
trunk_origin (list) – first element : name of the section from which the trunk originates, second element : position on section (E.g. [‘soma[5]’, 1]). If not set by the user, the end of the default soma section is used.
-