bluepyemodel.tools.create_em_json

Write an EModel resource JSON file from a stored local emodel.

Functions

create_em_json(access_point, seed[, ...])

Create an EModel JSON file for a stored emodel seed.

create_em_json(access_point, seed, map_function=<class 'map'>, output_dir=None)

Create an EModel JSON file for a stored emodel seed.

The output follows the Nexus EModel resource layout produced by bluepyemodel.emodel_pipeline.emodel.EModel.as_dict(). Responses (including holding and threshold currents) are computed before writing.

Parameters:
  • access_point (DataAccessPoint) – data access point.

  • seed (int) – optimisation seed of the emodel to export.

  • map_function (map) – parallel map function used for simulations.

  • output_dir (str or Path) – directory for the output file. Defaults to the current working directory.

Returns:

path to the written JSON file.

Return type:

Path