Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
Change-Id: I17951cd6da82c7fee13e5d8c2d8e9868b4e214fb
  • Loading branch information
Jaquier Aurélien Tristan committed Sep 4, 2023
1 parent f7a6955 commit 1f9b0ca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bluepyemodel/export_emodel/export_emodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def _write_node_file(emodel, model_template_path, node_file_path, morphology_pat
dynamics_params["threshold_current"] = emodel.responses["bpo_threshold_current"]


def _write_hoc_file(cell_model, emodel, hoc_file_path, template="cell_template_neurodamus_sbo.jinja2"):
def _write_hoc_file(
cell_model, emodel, hoc_file_path, template="cell_template_neurodamus_sbo.jinja2"
):
"""Creates a hoc file containing the emodel and its morphology.
WARNING: this assumes that any morphology modifier has been informed as both
a python method and a hoc method"""
Expand Down Expand Up @@ -105,7 +107,9 @@ def _export_model_sonata(cell_model, emodel, output_dir=None):
shutil.copyfile(cell_model.morphology.morphology_path, morphology_path)

# Exports the BluePyOpt cell model as a hoc file
_write_hoc_file(cell_model, emodel, hoc_file_path, template="cell_template_neurodamus_sbo.jinja2")
_write_hoc_file(
cell_model, emodel, hoc_file_path, template="cell_template_neurodamus_sbo.jinja2"
)

# Create the SONATA node file
_write_node_file(
Expand Down

0 comments on commit 1f9b0ca

Please sign in to comment.