SpineML / SpineML_2_BRAHMS

Code generation scripts to run a SpineML neural model using BRAHMS on standard CPUs
http://spineml.github.io/simulators/BRAHMS/
4 stars 3 forks source link

explicitList code has a runtime path hardcoded into it #3

Closed sebjameswml closed 10 years ago

sebjameswml commented 10 years ago

It's a rel. path which depends on it being executed in place. A solution needs to be found of some sort.

sebjameswml commented 10 years ago

@ajc158 Essentially, explicitList needs the spineml-2-brahms working directory at run time. Shall we have it obtain that from an environment variable? This way, we can just set the environment variable when we run brahms.

ajc158 commented 10 years ago

Fixed: added a param to the SpineML_2_BRAHMS_NL.xsl file, which is then passed to GenericInput_NL.xsl. This is the only place that and explicit list is instantiated, and the path is passed as BRAHMS state data through to the explicit list. Tested on Mac using the default param value, not tested on Debian Linux version.