Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit eaedd14

Browse files
author
Jaquier Aurélien Tristan
committed
improve docstrings in neuroml module
1 parent 3527f55 commit eaedd14

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

bluepyopt/neuroml/biophys.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def get_density(
336336
337337
Arguments:
338338
cell_doc (NeuroMLDocument): nml document of the cell model
339-
cell (ephys.CellModel)
339+
cell (ephys.CellModel): bluepyopt cell
340340
parameter (ephys.parameters)
341341
section_list (str): location
342342
included_channels (list): list of channels already included
@@ -417,10 +417,10 @@ def get_biophys(
417417
"""Get biophys in neuroml format.
418418
419419
Arguments:
420-
cell (ephys.CellModel)
420+
cell (ephys.CellModel): bluepyopt cell
421421
cell_doc (NeuroMLDocument): nml document of the cell model
422-
skip_non_uniform (bool): True to skip non uniform distributions
423422
release_params (dict): optimized parameters
423+
skip_non_uniform (bool): True to skip non uniform distributions
424424
skip_channels_copy (bool): True to skip the copy pasting
425425
of the neuroml channel files
426426
"""

bluepyopt/neuroml/cell.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ def create_neuroml_cell(bpo_cell, release_params, skip_channels_copy=False):
3131
"""Create the cell.
3232
3333
Arguments:
34-
nml_mech_files (list): paths to the nml files
35-
containing the mechanisms
36-
bpo_cell
34+
bpo_cell (ephys.CellModel): bluepyopt cell
3735
release_params (dict): the optimized parameters
3836
skip_channels_copy (bool): True to skip the copy pasting
3937
of the neuroml channel files

bluepyopt/neuroml/morphology.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,15 @@
2828
def create_loadcell_hoc(
2929
loadcell_hoc_filename, hoc_filename, morphology_path, v_init, cell_name
3030
):
31-
"""Create a hoc file able to load the cell."""
31+
"""Create a hoc file able to load the cell.
32+
33+
Arguments:
34+
loadcell_hoc_filename (str): path to the loadcell hoc file to output
35+
hoc_filename (str): file name of the cell hoc file
36+
morphology_path (str): path to the morphology file
37+
v_init (float): inital voltage in mV
38+
cell_name (str): cell name
39+
"""
3240
morph_path = Path(morphology_path)
3341
morph_dir = morph_path.parent
3442
morph_file = morph_path.name
@@ -56,7 +64,13 @@ def create_loadcell_hoc(
5664

5765

5866
def create_morph_nml(bpo_cell, network_filename, release_params):
59-
"""Create cell hoc file, then cell nml file."""
67+
"""Create cell hoc file, then cell nml file.
68+
69+
Arguments:
70+
bpo_cell (ephys.CellModel): bluepyopt cell
71+
network_filename (str): name of the neuroml network file
72+
release_params (dict): name and values of optimised parameters
73+
"""
6074
import pebble
6175

6276
hoc_filename = f"{bpo_cell.name}.hoc"

0 commit comments

Comments
 (0)