hbp_nrp_cle.brainsim.common.PythonBrainLoader module

Support methods to load a brain network from a python file

check_import_brain(path, is_completed)[source]

it tries to import the Brain in order to check if the Brain contains errors.

Parameters
  • path – path to the .py file

  • is_completed – it indicates that the brain was imported

clear_populations(brain_module)[source]

clear populations to the population

Parameters

brain_module – The brain module

is_brain_safely_imported(path)[source]

it checks if the brain can safely imported

Parameters

path – path to the .py file

load_py_network(path)[source]

Load a python network file

Parameters

path – path to the .py file

setup_access_to_population(brain_module, **populations)[source]

Sets up the access to the population

Parameters
  • brain_module – The brain module

  • populations – A dictionary of the populations and their ids