Store Model Name and Load it Later on

For questions and discussion related to reading in and working with data.
Finn Weiss
Posts: 15
Joined: Fri Apr 24, 2015 8:48 am

Store Model Name and Load it Later on

Unread post 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
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Store Model Name and Load it Later on

Unread post 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")
Post Reply