bluepyemodel.export_emodel.utils

Export the emodels in the SONATA format

Functions

copy_hocs_to_new_output_path(emodel, ...)

Copy the hocs from the local output path to the new nexus output path.

get_hoc_file_path(output_path)

Get the hoc file path.

get_output_path(emodel[, output_dir, ...])

Get the output path.

get_output_path_from_metadata(...[, ...])

Get the output path from the emodel_metadata.

select_emodels(emodel_name, emodels[, ...])

copy_hocs_to_new_output_path(emodel, output_base_dir)

Copy the hocs from the local output path to the new nexus output path.

get_hoc_file_path(output_path)

Get the hoc file path.

get_output_path(emodel, output_dir=None, output_base_dir='export_emodels_hoc', use_allen_notation=True, create_dir=True)

Get the output path.

Parameters:
  • emodel (EModel) – emodel

  • output_dir (str) – output directory

  • output_base_dir (str) – if output_dir is None, export to this directory instead, using also emodel metadata in the path

  • use_allen_notation (bool) – whether to replace brain region by its Allen notation

  • create_dir (bool) – whether to create the output folder if not existent

get_output_path_from_metadata(output_base_dir, emodel_metadata, seed, use_allen_notation=True)

Get the output path from the emodel_metadata.

Parameters:
  • output_base_dir (str) – output base directory

  • emodel_metadata (EModelMetadata) – emodel metadata

  • seed (int) – seed