rateML Package

XML2model

LEMS2python module implements a DSL code generation using a TVB-specific LEMS-based DSL.

class tvb.rateML.XML2model.RateML(model_filename=None, language=None, XMLfolder=None, GENfolder=None)[source]

Bases: object

XSD_validate_XML()[source]

Use own validation instead of LEMS because of slight difference in definition file

static default_XML_folder()[source]
static default_generation_folder()[source]
familiarize_TVB(model_str)[source]

Write new model to TVB model location and into init.py such it is familiar to TVB if not already present This is for Python models only

init_statevariables(model)[source]
load_model()[source]

Load model from filename

parse_args()[source]
pp_bound(model)[source]
pp_cplist(model)[source]
pp_noise(model)[source]
render()[source]

render_model start the mako templating. this function is similar for all languages. its .render arguments are overloaded.

render_driver(derivative_list)[source]
render_model(derivative_list, svboundaries, couplinglist, noisepresent, nsigpresent)[source]
set_XML_model_folder()[source]
set_driver_location()[source]
set_generated_model_location()[source]
set_template(name)[source]
swap_language_specific_terms(model_str)[source]
write_model_file(model_location, model_str)[source]

Write templated model to file

tmpl8_cuda

tmpl8_driver

tmpl8_python

Subpackages