pyneuroml.channelml package#

ChannelML related functions

Initial implementation at https://sourceforge.net/p/neuroml/code/HEAD/tree/NeuroML2/ChannelMLConvert/

For converting Channelpedia XML files in the BlueBrain format, please refer to OpenSourceBrain/BlueBrainProjectShowcase

File: pyneuroml/channelml/__init__.py

Copyright 2023 NeuroML contributors

pyneuroml.channelml.channelml2nml(channelmlfile: str, xsltfile: Optional[str] = None) Optional[str]#

Convert a ChannelML file to NeuroMLv2.

The second argument is optional, and if not set, the XSL file provided by pyNeuroML will be used. This is recommended.

Parameters
  • channelmlfile (str) – ChannelML file to convert

  • xsltfile (str) – XSL file to use for conversion (default: None, to use XSLT provided in pyNeuroML)

Returns

converted string

Return type

str