Skip to content

Commit 12414db

Browse files
committed
Add API documentation for currents, plotting, simulator, types, and utils modules
1 parent 33a7a96 commit 12414db

5 files changed

Lines changed: 128 additions & 0 deletions

File tree

docs/source/api/currents_api.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Current Generation
2+
==================
3+
4+
This module contains functions for generating various input current waveforms (ramp, step, sinusoidal, etc.).
5+
6+
7+
.. currentmodule:: myogen.utils.currents
8+
9+
.. autosummary::
10+
:toctree: ../generated/
11+
:template: autosummary/function.rst
12+
:recursive:
13+
14+
create_ramp_current
15+
create_step_current
16+
create_sinusoidal_current
17+
create_sawtooth_current
18+
create_trapezoid_current

docs/source/api/plotting_api.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Plotting & Visualization
2+
========================
3+
4+
This module contains functions for visualizing simulation results and analysis.
5+
All functions will return an Axes or a list of Axes for use in matplotlib.
6+
7+
.. currentmodule:: myogen.utils.plotting
8+
9+
.. autosummary::
10+
:toctree: ../generated/
11+
:template: autosummary/function.rst
12+
:recursive:
13+
14+
plot_recruitment_thresholds
15+
plot_spike_trains
16+
plot_surface_emg
17+
plot_muap_grid
18+
plot_input_current__matrix

docs/source/api/simulator_api.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Simulator Module
2+
================
3+
4+
.. currentmodule:: myogen.simulator
5+
6+
Motor Unit Recruitment Thresholds
7+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8+
9+
.. autosummary::
10+
:toctree: ../generated/
11+
:template: autosummary/function.rst
12+
:recursive:
13+
14+
generate_mu_recruitment_thresholds
15+
16+
Motor Neuron Pool
17+
^^^^^^^^^^^^^^^^^
18+
19+
.. autosummary::
20+
:toctree: ../generated/
21+
:template: autosummary/class.rst
22+
:recursive:
23+
24+
MotorNeuronPool
25+
26+
Muscle Model
27+
^^^^^^^^^^^^
28+
29+
.. autosummary::
30+
:toctree: ../generated/
31+
:template: autosummary/class.rst
32+
:recursive:
33+
34+
Muscle
35+
36+
EMG Generation
37+
^^^^^^^^^^^^^^
38+
39+
.. autosummary::
40+
:toctree: ../generated/
41+
:template: autosummary/class.rst
42+
:recursive:
43+
44+
SurfaceEMG

docs/source/api/types_api.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Type Definitions
2+
================
3+
4+
This module contains type definitions for structured data and type safety.
5+
6+
.. currentmodule:: myogen.utils.types
7+
8+
.. autosummary::
9+
:toctree: ../generated/
10+
:template: autosummary/data.rst
11+
:recursive:
12+
13+
INPUT_CURRENT__MATRIX
14+
SPIKE_TRAIN__MATRIX
15+
MUAP_SHAPE__TENSOR
16+
SURFACE_EMG__TENSOR

docs/source/api/utils_api.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Utils Module
2+
============
3+
4+
This module contains utility functions for setup, NMODL file handling, current generation, plotting, and type definitions.
5+
6+
The utils module is organized into the following submodules:
7+
- currents
8+
- plotting
9+
- types
10+
11+
.. currentmodule:: myogen.utils
12+
13+
Setup Functions
14+
^^^^^^^^^^^^^^^
15+
16+
.. autosummary::
17+
:toctree: ../generated/
18+
:template: autosummary/function.rst
19+
:recursive:
20+
21+
setup_myogen
22+
load_nmodl_files
23+
24+
Submodules
25+
^^^^^^^^^^
26+
27+
.. toctree::
28+
:maxdepth: 1
29+
30+
currents_api
31+
plotting_api
32+
types_api

0 commit comments

Comments
 (0)