In progress in
NeuroML Work items
Examples of integration between PyNN and NeuroML2 are being added to: https://github.com/OpenSourceBrain/PyNNShowcase
In progress here: https://github.com/pgleeson/PyNN/tree/master/pyNN/neuroml. There is example of a PyNN file converted to NeuroML2 on https://github.com/OpenSourceBrain/PyNNShowcase.
Started here: https://github.com/NeuroML/org.neuroml.export/blob/development/src/main/java/org/neuroml/export/pynn/PyNNWriter.java.
Initially only worked for models only using NML2 equivalents of PyNN cells, e.g. https://github.com/NeuroML/NeuroML2/blob/development/examples/NML2_PyNNCells.nml. Now using tips here and here to make sure this jNeuroML generated code is compatible with PyNN.
Similar to above, but use statement like:
cell_type, cell_instance = import_neuroml2_cell(file="MyNeuroML.nml",cell_id = "mycell")
inside existing PyNN script
Much improved PyNNWriter
Work towards NeuroML/NeuroML2#73