Usually, one uses omxSetParameters() to change something about a model - say fix or free parameters, so that the revised model can be fitted and compared. It would be useful to be able to change the name at that point. The attached patch modifies omxSetParameters() to add at the end of the arglist newname = NULL and if the newname is not NULL it changes the model name.
Possibly, newModelName would be a better name for the new argument, from the disambiguation pov. That does, however, apply in other places... name = is also a possibility but would be even more ambiguous.
Attachment | Size |
---|---|
mxModelParameters.patch | 864 bytes |
#1
Log in or register to post comments
#2
From a didactic perspective, one command to effect all the necessary changes in a model seems easier to communicate.
Good to be reminded about mxRename() nonetheless; might simplify the proposed revision to omxSetParameters
Log in or register to post comments
#3
Log in or register to post comments
#4
I wrote a wrapper just to do this, and it would be good to retire it :-)
Log in or register to post comments
#5
Log in or register to post comments
#6
Log in or register to post comments