Donders-Institute / PRESTUS

PREprocessing & Simulations for Transcranial Ultrasound Stimulation package
GNU General Public License v3.0
12 stars 10 forks source link

Save used version amongst results #38

Open jkosciessa opened 1 month ago

jkosciessa commented 1 month ago

It would be great to keep track of the used version (in the case of a cloned toolbox via hashes) amongst the results (either the 'parameters' file, or as a txt file).

e.g.,

%% save current info about current version
[s,git_hash_string] = system('git rev-parse HEAD');
expInfo.version = git_hash_string;
mekman commented 1 month ago

Nice, PR welcome.

Please also cover the case when git history is not available. Cheers