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

convert_script_s2b -m ~/relative/path doesn't work #11

Closed sebjameswml closed 10 years ago

sebjameswml commented 10 years ago

You have to provide a full path; this is bad.

sebjameswml commented 10 years ago

E.g.:

[pc1ssj@amd-node126 SpineML_2_BRAHMS]$ ./convert_script_s2b -m ../model -o ../../../fastdata/pc1ssj/temp5
MODEL_DIR: ../model
OUTPUT_DIR: ../../../fastdata/pc1ssj/temp5
Tools compiled correctly
Using defaults for BRAHMS_NS and SYSTEMML_INSTALL_PATH.
/fastdata/pc1ssj/temp5 ~/SpineML_2_BRAHMS
In directory:  /fastdata/pc1ssj/temp5
Execute: ./output.script false true ../model experiment.xml /home/pc1ssj/SystL/Namespace /home/pc1ssj/SpineML_2_BRAHMS  ../../../fastdata/pc1ssj/temp5 /hopc1ssj/SpineML_2_BRAHMS/xsl  
Ignoring invalid node architecture ''
SPINEML_2_BRAHMS_DIR is /home/pc1ssj/SpineML_2_BRAHMS
SPINEML_2_BRAHMS_NS is /home/pc1ssj/SpineML_2_BRAHMS/Namespace
BRAHMS_NS is /home/pc1ssj/SystemML/Namespace
SPINEML_2_BRAHMS_INCLUDE_PATH=/home/pc1ssj/SpineML_2_BRAHMS/include
Creating the Neuron populations...
Creating component.cpp for population 1 in directory /home/pc1ssj/SpineML_2_BMS/Namespace/dev/SpineML/temp/NB/StriataloFastHspikingoInterneuron/brahms/0
warning: failed to load external entity "../model/model.xml"
unable to parse ../model/model.xml
cp: cannot stat `../model/Striatal_Fast-spiking_Interneuron.xml': No such filr directory
Compiling component binary
Creating component.cpp for population 2 in directory /home/pc1ssj/SpineML_2_BMS/Namespace/dev/SpineML/temp/NB/StriataloD1oMediumoSpiny/brahms/0
warning: failed to load external entity "../model/model.xml"
unable to parse ../model/model.xml
sebjameswml commented 10 years ago

Problem is that the path to the model when given as relative, is relative to the invocation directory. The output.script is then called with that same path, but from the output directory. output.script needs to be passed the path relative to its own location.

sebjameswml commented 10 years ago

Commit e86578d fixes.