Skip to content

Commit

Permalink
Merge pull request #119 from BlueBrain/tracefile
Browse files Browse the repository at this point in the history
add docstring to TraceFile.__init__
  • Loading branch information
AurelienJaquier committed Mar 19, 2024
2 parents 5ee38af + 58f59e1 commit d951a44
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion bluepyemodel/efeatures_extraction/trace_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,51 @@ def __init__(
etype=None,
id=None,
):
"""Docstring please"""
"""Constructor.
Args:
cell_name (str): cell name
filename (str): file name
filepath (str): file path
resource_id (str): deprecated. kept for legacy reasons
ecodes (dict): the ecodes, e.g.
.. code-block::
{
"IDrest": {
"t_unit": "s",
"ljp": 14.0,
"protocol_name": "IDrest"
}
other_metadata (dict): voltage and current files, e.g.
.. code-block::
{
"v_file": "path_to_voltage_file",
"i_file": "path_to_current_file"
}
species (dict): species, e.g.
.. code-block::
{
"id": "http://purl.obolibrary.org/obo/NCBITaxon_10090",
"label": "Mus musculus",
}
brain_region (dict): brain region, e.g.
.. code-block::
{
"@id": "http://api.brain-map.org/api/v2/data/Structure/407",
"label": "Field CA1, pyramidal layer"
}
etype (str): etype
id (str): the nexus id of the trace resource
"""
self.cell_name = cell_name
self.filename = filename if filename else cell_name
self.filepath = filepath
Expand Down

0 comments on commit d951a44

Please sign in to comment.