Skip to content

Commit fff20f2

Browse files
Merge pull request #306 from NeuroML/feat/doc-sbml
Document sbml
2 parents eb91d94 + 78a042a commit fff20f2

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

docs/source/pyneuroml.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ The PyNeuroML package includes the following sub-packages:
2626
pyneuroml.povray
2727
pyneuroml.runners
2828
pyneuroml.swc
29+
pyneuroml.sbml
2930
pyneuroml.tune
3031
pyneuroml.utils

docs/source/pyneuroml.sbml.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pyneuroml.sbml module
2+
======================
3+
4+
.. automodule:: pyneuroml.sbml
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

pyneuroml/sbml/__init__.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@
1111

1212

1313
def validate_sbml_files(input_files: List[str], strict_units: bool = False) -> bool:
14-
"""
15-
validate each input file using libsbml.SBMLDocument.checkConsistency
16-
input_files is a list of one or more filepaths
17-
strict_units converts unit consistency warnings into errors
14+
"""Validate input files using libsbml.SBMLDocument.checkConsistency
15+
16+
:param input_files: a list of one or more filepaths
17+
:type input_files: list(str)
18+
:param strict_units: toggle whether unit consistency warnings should be
19+
treated as errors
20+
:type strict_units: bool
21+
:returns: True if all files are valid, else False
22+
:rtype: bool
1823
"""
1924

2025
if not len(input_files) >= 1:

0 commit comments

Comments
 (0)