Page 1 of 1

Store Model Name and Load it Later on

Posted: Mon Jul 11, 2016 4:41 am
by Finn Weiss
Hey,

my aim is to run a procedure in the batch mode. I want to put different models in this procudre. I know how i can read in the path where the model is builded but i also want to use the model, which for example is called testmod.
So my question is, if there is a possibility to save the models name in a txt-file and load that txt-file in the bath mode. I want Rats to recognise that this is a model name? How can i achieve it?

Best regards

Re: Store Model Name and Load it Later on

Posted: Mon Jul 25, 2016 10:22 am
by TomDoan
There isn't really any mechanism for saving models. You can create multiple source files, each of which defines a particular form of the model, and choose which one to bring in programmatically. For instance,

compute whichmodel="model1"
source &(whichmodel+".src")