brian-lau / MatlabStan

Matlab interface to Stan, a package for Bayesian inference
BSD 3-Clause "New" or "Revised" License
80 stars 47 forks source link

MatlabStan version number in downloaded files #40

Open peclayson opened 7 years ago

peclayson commented 7 years ago

This is actually just a simple request 😄 I was wondering whether it would be possible to include the version number of the release of MatlabStan in the downloaded files somewhere.

When I run models, I like to record the versions of cmdstan, matlabstan, and matlabprocessmanager that were used for the models. I have code that pulls the information programmatically for cmdstan and matlabprocessmanager, but I wasn't able to find the release version in any of the downloaded files for MatlabStan. Right now, I pull it from the folder name of the directory that contains the code, but my collaborators don't always include that information in the folder name.

Of course, not a big deal if you don't like the idea. I figured it wouldn't hurt to ask though. Thanks!

brian-lau commented 7 years ago

This is possible. I could for example include a VERSION file in the base directory that indicates the release version. However, depending on how one downloads the code, this may not point to the snapshot used since I don't update the release version for each commit.

I'll push this in once you let me know this solution works for you.

peclayson commented 7 years ago

That would work great. Thanks!