datetime.m error with mvpa.0.7.1 & Matlab R2014b

264 views
Skip to first unread message

Zigfried Hampel

unread,
Feb 6, 2015, 1:37:12 PM2/6/15
to mvpa-t...@googlegroups.com

Hello, 

    Our lab at UW Madison has been using mvpa for years. In our recent upgrade to Matlab R2014b and mvpa.0.7.1, we discovered an overloaded function error, related to mvpa's datetime.m function / file. A temporary work around involved placing mvpa/datetime.m into a directory called private as mvpa/private/datetime.m In previous mvpa versions, datetime was located in mvpa/core/util/ Does the princeton-mvpa group have other guidance or a more robust, permanent solution to this error? Thanks!

Zig

Greg Detre

unread,
Feb 6, 2015, 1:41:16 PM2/6/15
to mvpa-t...@googlegroups.com
The long-term solution would be to rename the mvpa version to something that doesn't overload, e.g. mvpa_datetime.m or datetime_yymmdd.m and change all the internal calls to it.


--
You received this message because you are subscribed to the Google Groups "Princeton MVPA Toolbox for Matlab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mvpa-toolbox...@googlegroups.com.
To post to this group, send email to mvpa-t...@googlegroups.com.
Visit this group at http://groups.google.com/group/mvpa-toolbox.
For more options, visit https://groups.google.com/d/optout.



--
-- 
Greg Detre
skype:gdetre

Garrett McGrath

unread,
Feb 26, 2015, 5:14:42 PM2/26/15
to mvpa-t...@googlegroups.com, gr...@gregdetre.co.uk
A full repair of this situation would touch basically the entirety of the MVPA project because we would have to namespace everything via the package and class namespace system: http://www.mathworks.com/help/matlab/matlab_oop/scoping-classes-with-packages.html. Unfortunately that's a time commitment that I'm not currently capable of providing.  You could indeed patch around this problem with a mass find/replace command that makes 'datetime' become 'mvpa_datetime' on your local version of the code. This can be done via a handful of lines in bash: https://stackoverflow.com/questions/15920276/find-and-replace-string-in-all-files-recursive-using-grep-and-sed
-Garrett
Reply all
Reply to author
Forward
0 new messages