<div dir="ltr"><span style="font-size:12.8px">Hey Francois,</span><br><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">ft_version can be use to track the version of FT. I think it picks up the function that has been most recently updated. Check 'signature.md5' in the main FT directory.</span></div><div><span style="font-size:12.8px">Also, each of the output structure has a 'cfg.version' field which carries the version of that particular function. You could use either which you need.</span></div><div><span style="font-size:12.8px"><br></span></div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><font color="#000000">--</font></div><div><font color="#000000">Regards,<br></font></div><div><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div style="text-align:left"><font color="#000000">Kousik Sarathy, S</font></div></span></div><div style="text-align:left"><br></div></div></div></div>
<br><div class="gmail_quote">On Fri, Sep 4, 2015 at 5:17 PM, François Tadel <span dir="ltr"><<a href="mailto:francois.tadel@mcgill.ca" target="_blank">francois.tadel@mcgill.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
We're currently writing wrappers to call FieldTrip functions from the Brainstorm pipeline editor.<br>
For bookkeeping, we would like to save in the database the version of FieldTrip that was used to create the files.<br>
<br>
I'm having trouble with the function ft_version:<br>
    >> [ftver, ftpath] = ft_version<br>
    Reference to non-existent element of a cell array.<br>
    Error in ft_version (line 155)<br>
            rev = rev{1}{1};<br>
<br>
The file signature.md5 contains the following text:<br>
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><br>
    <html><head><br>
    <title>301 Moved Permanently</title><br>
    </head><body><br>
    <h1>Moved Permanently</h1><br>
    <p>The document has moved <a href="<a href="http://www.fieldtriptoolbox.org/signature.md5" rel="noreferrer" target="_blank">http://www.fieldtriptoolbox.org/signature.md5</a>">here</a>.</p><br>
    </body></html><br>
<br>
How can I get the version of FieldTrip in a reliable way?<br>
<br>
Thanks,<br>
Francois<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
François Tadel, MSc<br>
MEG / McConnell Brain Imaging Center / MNI / McGill University<br>
3801 rue University, Montreal, QC H3A2B4, Canada<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></font></span></blockquote></div><br></div></div>