Skip to content

Commit

Permalink
docs: correctly populate "others"
Browse files Browse the repository at this point in the history
Need to use a `finally` block, not an `else` block.
  • Loading branch information
sanjayankur31 committed Aug 14, 2024
1 parent 7d3be50 commit a7c827f
Show file tree
Hide file tree
Showing 6 changed files with 815 additions and 1 deletion.
17 changes: 16 additions & 1 deletion doc/helpers/nml-core-docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@
classes[f] = classlist


total_classes = 0
for module, clist in classes.items():
total_classes += len(clist)
f = module.split(".")[0]
for aclass in clist:
# do not print all the internal methods in GeneratedsSuper
Expand Down Expand Up @@ -127,15 +129,28 @@
category = "Cells"
elif "gate" in aclass.lower():
category = "Channels"
elif "hh" in aclass.lower():
category = "Channels"
elif "q10" in aclass.lower():
category = "Channels"
elif "channel" in aclass.lower():
category = "Channels"
elif "network" in aclass.lower():
category = "Networks"
elif "population" in aclass.lower():
category = "Networks"
else:
print(f"{aclass} fits nowhere, putting in Other")
category = "Other"
else:
finally:
comp_num_dict[category] += 1
fwrite = output_files[category]
print(towrite, file=fwrite)

print("Done")
print(comp_num_dict)

print(f"Total classes read from libNeuroML: {total_classes}")

for comp, num in comp_num_dict.items():
output_files[comp].close()
77 changes: 77 additions & 0 deletions doc/userdocs/Cells_list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ Cell2CaPools



CellSet
^^^^^^^

.. autoclass:: neuroml.nml.nml.CellSet
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



ChannelDensity
^^^^^^^^^^^^^^

Expand Down Expand Up @@ -220,6 +231,39 @@ DistalDetails



ExtracellularProperties
^^^^^^^^^^^^^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.ExtracellularProperties
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



ExtracellularPropertiesLocal
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.ExtracellularPropertiesLocal
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



FitzHughNagumo1969Cell
^^^^^^^^^^^^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.FitzHughNagumo1969Cell
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



FitzHughNagumoCell
^^^^^^^^^^^^^^^^^^

Expand Down Expand Up @@ -547,3 +591,36 @@ VariableParameter
:undoc-members:
:show-inheritance:
:inherited-members:



basePyNNCell
^^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.basePyNNCell
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



basePyNNIaFCell
^^^^^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.basePyNNIaFCell
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



basePyNNIaFCondCell
^^^^^^^^^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.basePyNNIaFCondCell
:members:
:undoc-members:
:show-inheritance:
:inherited-members:
154 changes: 154 additions & 0 deletions doc/userdocs/Channels_list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ GateFractional



GateFractionalSubgate
^^^^^^^^^^^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.GateFractionalSubgate
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



GateHHInstantaneous
^^^^^^^^^^^^^^^^^^^

Expand All @@ -55,6 +66,72 @@ GateHHInstantaneous



GateHHRates
^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.GateHHRates
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



GateHHRatesInf
^^^^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.GateHHRatesInf
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



GateHHRatesTau
^^^^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.GateHHRatesTau
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



GateHHRatesTauInf
^^^^^^^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.GateHHRatesTauInf
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



GateHHTauInf
^^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.GateHHTauInf
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



GateHHUndetermined
^^^^^^^^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.GateHHUndetermined
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



GateKS
^^^^^^

Expand All @@ -66,6 +143,39 @@ GateKS



HHRate
^^^^^^

.. autoclass:: neuroml.nml.nml.HHRate
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



HHTime
^^^^^^

.. autoclass:: neuroml.nml.nml.HHTime
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



HHVariable
^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.HHVariable
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



IonChannel
^^^^^^^^^^

Expand Down Expand Up @@ -99,6 +209,17 @@ IonChannelKS



IonChannelScalable
^^^^^^^^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.IonChannelScalable
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



IonChannelVShift
^^^^^^^^^^^^^^^^

Expand Down Expand Up @@ -132,6 +253,17 @@ Q10ConductanceScaling



Q10Settings
^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.Q10Settings
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



ReverseTransition
^^^^^^^^^^^^^^^^^

Expand All @@ -151,3 +283,25 @@ TauInfTransition
:undoc-members:
:show-inheritance:
:inherited-members:



channelTypes
^^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.channelTypes
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



gateTypes
^^^^^^^^^

.. autoclass:: neuroml.nml.nml.gateTypes
:members:
:undoc-members:
:show-inheritance:
:inherited-members:
22 changes: 22 additions & 0 deletions doc/userdocs/Networks_list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,25 @@ SynapticConnection
:undoc-members:
:show-inheritance:
:inherited-members:



networkTypes
^^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.networkTypes
:members:
:undoc-members:
:show-inheritance:
:inherited-members:



populationTypes
^^^^^^^^^^^^^^^

.. autoclass:: neuroml.nml.nml.populationTypes
:members:
:undoc-members:
:show-inheritance:
:inherited-members:
Loading

0 comments on commit a7c827f

Please sign in to comment.