neurom.io.load_neurons

neurom.io.load_neurons(neurons, neuron_loader=<function load_neuron>, name=None, population_class=<class 'neurom.core.population.Population'>)[source]

Create a population object from all morphologies in a directory of from morphologies in a list of file names

Parameters:
  • neurons – directory path or list of neuron file paths
  • neuron_loader – function taking a filename and returning a neuron
  • population_class – class representing populations
  • name (str) – optional name of population. By default ‘Population’ or filepath basename depending on whether neurons is list or directory path respectively.
Returns:

neuron population object