Page 1 of 1

Git

Posted: Wed Mar 11, 2020 1:07 pm
by aliakhavan89
Dear all,

I hope this message finds you well. When models get huge, tracking a single change will become extremely challenging. In this regard, I searched a little bit and figured out that Git can read .mdl files (since they are in text format), and can keep track of different versions and history of changes.

However, it is not a straightforward process and needs some modifications. Also, there might be some problems with the way that Vensim reorders the equations each time a model is saved. By the way, I was wondering if somebody has a similar experience so that we can share our thoughts about this.

I thought that there could be potentials in the long-term to integrate these features within the software so that tracking with Git can be automatically done. This is the same as what R can do.

I can share some screenshots later. Let me know your thoughts.

Kind regards,
Ali

Re: Git

Posted: Wed Mar 11, 2020 1:16 pm
by Administrator
Click Model->Reform/Clean. Now set the equation ordering as alphabetical and tick "Reform/Clean on model save". This should help a lot as the model will now always have the same equation ordering.

Re: Git

Posted: Wed Mar 11, 2020 1:18 pm
by tomfid
Or update your version - newer ones do this automatically.

Re: Git

Posted: Thu Mar 12, 2020 10:08 pm
by aliakhavan89
These are very helpful. I will try to find a proper workflow relating to Git and will share my findings later.