Skip to content

Commit

Permalink
chore: regen schemas
Browse files Browse the repository at this point in the history
to ensure HindmarshRose1984 python usage is included
  • Loading branch information
sanjayankur31 committed Oct 27, 2023
1 parent 39a8954 commit b715089
Show file tree
Hide file tree
Showing 11 changed files with 53 additions and 28 deletions.
3 changes: 2 additions & 1 deletion scripts/schemas/generate-jupyter-ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ def main(srcdir, destdir):


if __name__ == "__main__":
src = "/home/asinha/Documents/02_Code/00_mine/NeuroML/software/NeuroML2/"
# src = "/home/asinha/Documents/02_Code/00_mine/NeuroML/software/NeuroML2/"
src = None
destdir = "../../source/Userdocs/Schemas/"
main(src, destdir)
2 changes: 2 additions & 0 deletions scripts/schemas/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
libneuroml
pylems
36 changes: 29 additions & 7 deletions source/Userdocs/Schemas/Cells.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Original ComponentType definitions: [Cells.xml](https://github.com/NeuroML/NeuroML2/blob/master/NeuroML2CoreTypes//Cells.xml).
Schema against which NeuroML based on these should be valid: [NeuroML_v2.3.xsd](https://github.com/NeuroML/NeuroML2/tree/master/Schemas/NeuroML2/NeuroML_v2.3.xsd).
Generated on 20/09/23 from [this](https://github.com/NeuroML/NeuroML2/commit/4039f943edeac10c2f173a9d2e7834a7a8b9ba8a) commit.
Generated on 27/10/23 from [this](https://github.com/NeuroML/NeuroML2/commit/352244cff605cb1ba24fa7c11757dc818fe90fd2) commit.
Please file any issues or questions at the [issue tracker here](https://github.com/NeuroML/NeuroML2/issues).

---
Expand Down Expand Up @@ -3394,9 +3394,6 @@ variable = InitMembPotential(
```{code-block} xml
<initMembPotential value="-65mV"/>
```
```{code-block} xml
<initMembPotential value="-65mV"/>
```
````
`````

Expand Down Expand Up @@ -3454,9 +3451,6 @@ variable = SpikeThresh(
```{code-block} xml
<spikeThresh value="-20mV"/>
```
```{code-block} xml
<spikeThresh value="-20mV"/>
```
````
`````

Expand Down Expand Up @@ -7195,6 +7189,34 @@ extends *{ref}`schema:basecellmembpotcap`*
</xs:complexContent>
</xs:complexType>
```
````
````{tab-item} Usage: Python
*<a href="https://libneuroml.readthedocs.io/en/latest/search.html?q=HindmarshRose1984Cell" target="_blank">Go to the libNeuroML documentation</a>*
```{code-block} python
from neuroml import HindmarshRose1984Cell
variable = HindmarshRose1984Cell(
id: 'a NmlId (required)' = None,
metaid: 'a MetaId (optional)' = None,
notes: 'a string (optional)' = None,
properties: 'list of Property(s) (optional)' = None,
annotation: 'a Annotation (optional)' = None,
neuro_lex_id: 'a NeuroLexId (optional)' = None,
C: 'a Nml2Quantity_capacitance (required)' = None,
a: 'a Nml2Quantity_none (required)' = None,
b: 'a Nml2Quantity_none (required)' = None,
c: 'a Nml2Quantity_none (required)' = None,
d: 'a Nml2Quantity_none (required)' = None,
s: 'a Nml2Quantity_none (required)' = None,
x1: 'a Nml2Quantity_none (required)' = None,
r: 'a Nml2Quantity_none (required)' = None,
x0: 'a Nml2Quantity_none (required)' = None,
y0: 'a Nml2Quantity_none (required)' = None,
z0: 'a Nml2Quantity_none (required)' = None,
v_scaling: 'a Nml2Quantity_voltage (required)' = None,
)
```
````
`````
2 changes: 1 addition & 1 deletion source/Userdocs/Schemas/Channels.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Original ComponentType definitions: [Channels.xml](https://github.com/NeuroML/NeuroML2/blob/master/NeuroML2CoreTypes//Channels.xml).
Schema against which NeuroML based on these should be valid: [NeuroML_v2.3.xsd](https://github.com/NeuroML/NeuroML2/tree/master/Schemas/NeuroML2/NeuroML_v2.3.xsd).
Generated on 20/09/23 from [this](https://github.com/NeuroML/NeuroML2/commit/4039f943edeac10c2f173a9d2e7834a7a8b9ba8a) commit.
Generated on 27/10/23 from [this](https://github.com/NeuroML/NeuroML2/commit/352244cff605cb1ba24fa7c11757dc818fe90fd2) commit.
Please file any issues or questions at the [issue tracker here](https://github.com/NeuroML/NeuroML2/issues).

---
Expand Down
2 changes: 1 addition & 1 deletion source/Userdocs/Schemas/Inputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Original ComponentType definitions: [Inputs.xml](https://github.com/NeuroML/NeuroML2/blob/master/NeuroML2CoreTypes//Inputs.xml).
Schema against which NeuroML based on these should be valid: [NeuroML_v2.3.xsd](https://github.com/NeuroML/NeuroML2/tree/master/Schemas/NeuroML2/NeuroML_v2.3.xsd).
Generated on 20/09/23 from [this](https://github.com/NeuroML/NeuroML2/commit/4039f943edeac10c2f173a9d2e7834a7a8b9ba8a) commit.
Generated on 27/10/23 from [this](https://github.com/NeuroML/NeuroML2/commit/352244cff605cb1ba24fa7c11757dc818fe90fd2) commit.
Please file any issues or questions at the [issue tracker here](https://github.com/NeuroML/NeuroML2/issues).

---
Expand Down
26 changes: 13 additions & 13 deletions source/Userdocs/Schemas/Networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Original ComponentType definitions: [Networks.xml](https://github.com/NeuroML/NeuroML2/blob/master/NeuroML2CoreTypes//Networks.xml).
Schema against which NeuroML based on these should be valid: [NeuroML_v2.3.xsd](https://github.com/NeuroML/NeuroML2/tree/master/Schemas/NeuroML2/NeuroML_v2.3.xsd).
Generated on 20/09/23 from [this](https://github.com/NeuroML/NeuroML2/commit/4039f943edeac10c2f173a9d2e7834a7a8b9ba8a) commit.
Generated on 27/10/23 from [this](https://github.com/NeuroML/NeuroML2/commit/352244cff605cb1ba24fa7c11757dc818fe90fd2) commit.
Please file any issues or questions at the [issue tracker here](https://github.com/NeuroML/NeuroML2/issues).

---
Expand Down Expand Up @@ -755,10 +755,10 @@ from neuroml import Connection
variable = Connection(
id: 'a NonNegativeInteger (required)' = None,
neuro_lex_id: 'a NeuroLexId (optional)' = None,
pre_cell_id: 'a string (required)' = None,
pre_cell_id: 'a Nml2PopulationReferencePath (required)' = None,
pre_segment_id: 'a NonNegativeInteger (optional)' = '0',
pre_fraction_along: 'a ZeroToOne (optional)' = '0.5',
post_cell_id: 'a string (required)' = None,
post_cell_id: 'a Nml2PopulationReferencePath (required)' = None,
post_segment_id: 'a NonNegativeInteger (optional)' = '0',
post_fraction_along: 'a ZeroToOne (optional)' = '0.5',
)
Expand Down Expand Up @@ -848,9 +848,9 @@ from neuroml import SynapticConnection
variable = SynapticConnection(
neuro_lex_id: 'a NeuroLexId (optional)' = None,
from_: 'a string (required)' = None,
to: 'a string (required)' = None,
synapse: 'a string (required)' = None,
from_: 'a Nml2PopulationReferencePath (required)' = None,
to: 'a Nml2PopulationReferencePath (required)' = None,
synapse: 'a NmlId (required)' = None,
destination: 'a NmlId (optional)' = None,
)
```
Expand Down Expand Up @@ -970,10 +970,10 @@ from neuroml import ConnectionWD
variable = ConnectionWD(
id: 'a NonNegativeInteger (required)' = None,
neuro_lex_id: 'a NeuroLexId (optional)' = None,
pre_cell_id: 'a string (required)' = None,
pre_cell_id: 'a Nml2PopulationReferencePath (required)' = None,
pre_segment_id: 'a NonNegativeInteger (optional)' = '0',
pre_fraction_along: 'a ZeroToOne (optional)' = '0.5',
post_cell_id: 'a string (required)' = None,
post_cell_id: 'a Nml2PopulationReferencePath (required)' = None,
post_segment_id: 'a NonNegativeInteger (optional)' = '0',
post_fraction_along: 'a ZeroToOne (optional)' = '0.5',
weight: 'a float (required)' = None,
Expand Down Expand Up @@ -1691,9 +1691,9 @@ variable = ContinuousProjection(
from neuroml import ExplicitInput
variable = ExplicitInput(
target: 'a string (required)' = None,
input: 'a string (required)' = None,
destination: 'a string (optional)' = None,
target: 'a Nml2PopulationReferencePath (required)' = None,
input: 'a NmlId (required)' = None,
destination: 'a NmlId (optional)' = None,
)
```
````
Expand Down Expand Up @@ -1860,7 +1860,7 @@ from neuroml import Input
variable = Input(
id: 'a NonNegativeInteger (required)' = None,
target: 'a string (required)' = None,
target: 'a Nml2PopulationReferencePath (required)' = None,
destination: 'a NmlId (required)' = None,
segment_id: 'a NonNegativeInteger (optional)' = None,
fraction_along: 'a ZeroToOne (optional)' = None,
Expand Down Expand Up @@ -1947,7 +1947,7 @@ from neuroml import InputW
variable = InputW(
id: 'a NonNegativeInteger (required)' = None,
target: 'a string (required)' = None,
target: 'a Nml2PopulationReferencePath (required)' = None,
destination: 'a NmlId (required)' = None,
segment_id: 'a NonNegativeInteger (optional)' = None,
fraction_along: 'a ZeroToOne (optional)' = None,
Expand Down
2 changes: 1 addition & 1 deletion source/Userdocs/Schemas/NeuroMLCoreCompTypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Original ComponentType definitions: [NeuroMLCoreCompTypes.xml](https://github.com/NeuroML/NeuroML2/blob/master/NeuroML2CoreTypes//NeuroMLCoreCompTypes.xml).
Schema against which NeuroML based on these should be valid: [NeuroML_v2.3.xsd](https://github.com/NeuroML/NeuroML2/tree/master/Schemas/NeuroML2/NeuroML_v2.3.xsd).
Generated on 20/09/23 from [this](https://github.com/NeuroML/NeuroML2/commit/4039f943edeac10c2f173a9d2e7834a7a8b9ba8a) commit.
Generated on 27/10/23 from [this](https://github.com/NeuroML/NeuroML2/commit/352244cff605cb1ba24fa7c11757dc818fe90fd2) commit.
Please file any issues or questions at the [issue tracker here](https://github.com/NeuroML/NeuroML2/issues).

---
Expand Down
2 changes: 1 addition & 1 deletion source/Userdocs/Schemas/NeuroMLCoreDimensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Original ComponentType definitions: [NeuroMLCoreDimensions.xml](https://github.com/NeuroML/NeuroML2/blob/master/NeuroML2CoreTypes//NeuroMLCoreDimensions.xml).
Schema against which NeuroML based on these should be valid: [NeuroML_v2.3.xsd](https://github.com/NeuroML/NeuroML2/tree/master/Schemas/NeuroML2/NeuroML_v2.3.xsd).
Generated on 20/09/23 from [this](https://github.com/NeuroML/NeuroML2/commit/4039f943edeac10c2f173a9d2e7834a7a8b9ba8a) commit.
Generated on 27/10/23 from [this](https://github.com/NeuroML/NeuroML2/commit/352244cff605cb1ba24fa7c11757dc818fe90fd2) commit.
Please file any issues or questions at the [issue tracker here](https://github.com/NeuroML/NeuroML2/issues).

---
Expand Down
2 changes: 1 addition & 1 deletion source/Userdocs/Schemas/PyNN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Original ComponentType definitions: [PyNN.xml](https://github.com/NeuroML/NeuroML2/blob/master/NeuroML2CoreTypes//PyNN.xml).
Schema against which NeuroML based on these should be valid: [NeuroML_v2.3.xsd](https://github.com/NeuroML/NeuroML2/tree/master/Schemas/NeuroML2/NeuroML_v2.3.xsd).
Generated on 20/09/23 from [this](https://github.com/NeuroML/NeuroML2/commit/4039f943edeac10c2f173a9d2e7834a7a8b9ba8a) commit.
Generated on 27/10/23 from [this](https://github.com/NeuroML/NeuroML2/commit/352244cff605cb1ba24fa7c11757dc818fe90fd2) commit.
Please file any issues or questions at the [issue tracker here](https://github.com/NeuroML/NeuroML2/issues).

---
Expand Down
2 changes: 1 addition & 1 deletion source/Userdocs/Schemas/Simulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Original ComponentType definitions: [Simulation.xml](https://github.com/NeuroML/NeuroML2/blob/master/NeuroML2CoreTypes//Simulation.xml).
Schema against which NeuroML based on these should be valid: [NeuroML_v2.3.xsd](https://github.com/NeuroML/NeuroML2/tree/master/Schemas/NeuroML2/NeuroML_v2.3.xsd).
Generated on 20/09/23 from [this](https://github.com/NeuroML/NeuroML2/commit/4039f943edeac10c2f173a9d2e7834a7a8b9ba8a) commit.
Generated on 27/10/23 from [this](https://github.com/NeuroML/NeuroML2/commit/352244cff605cb1ba24fa7c11757dc818fe90fd2) commit.
Please file any issues or questions at the [issue tracker here](https://github.com/NeuroML/NeuroML2/issues).

---
Expand Down
2 changes: 1 addition & 1 deletion source/Userdocs/Schemas/Synapses.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Original ComponentType definitions: [Synapses.xml](https://github.com/NeuroML/NeuroML2/blob/master/NeuroML2CoreTypes//Synapses.xml).
Schema against which NeuroML based on these should be valid: [NeuroML_v2.3.xsd](https://github.com/NeuroML/NeuroML2/tree/master/Schemas/NeuroML2/NeuroML_v2.3.xsd).
Generated on 20/09/23 from [this](https://github.com/NeuroML/NeuroML2/commit/4039f943edeac10c2f173a9d2e7834a7a8b9ba8a) commit.
Generated on 27/10/23 from [this](https://github.com/NeuroML/NeuroML2/commit/352244cff605cb1ba24fa7c11757dc818fe90fd2) commit.
Please file any issues or questions at the [issue tracker here](https://github.com/NeuroML/NeuroML2/issues).

---
Expand Down

0 comments on commit b715089

Please sign in to comment.