Back to the main page.
Bug 1354 - uint64 object is not needed any more on matlab 2011b
Status | CLOSED WONTFIX |
Reported | 2012-03-01 21:43:00 +0100 |
Modified | 2013-04-23 12:06:31 +0200 |
Product: | FieldTrip |
Component: | fileio |
Version: | unspecified |
Hardware: | Macintosh |
Operating System: | Mac OS |
Importance: | P3 minor |
Assigned to: | Robert Oostenveld |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Robert Oostenveld - 2012-03-01 21:43:20 +0100
Having the fieldtrip/fileio/@uint64 object on the path causes the following error >> audiorecorder(44100, 16, 2) Error using audiorecorder/initialize (line 241) Invalid type of input arguments (should be uint64) Error in audiorecorder (line 193) obj.initialize(); whereas after "restoredefaultpath" this is not a problem. Note that this was detected while trying out the ft_realtime_pooraudioproxy function. It turns out that the uint64 overloaded functions are not needed any more for this matlab version >> which -all plus built-in (/Applications/MATLAB_R2011b.app/toolbox/matlab/ops/@single/plus) % single method built-in (/Applications/MATLAB_R2011b.app/toolbox/matlab/ops/@double/plus) % double method built-in (/Applications/MATLAB_R2011b.app/toolbox/matlab/ops/@char/plus) % char method built-in (/Applications/MATLAB_R2011b.app/toolbox/matlab/ops/@logical/plus) % logical method built-in (/Applications/MATLAB_R2011b.app/toolbox/matlab/ops/@int64/plus) % int64 method built-in (/Applications/MATLAB_R2011b.app/toolbox/matlab/ops/@int32/plus) % int32 method built-in (/Applications/MATLAB_R2011b.app/toolbox/matlab/ops/@int16/plus) % int16 method built-in (/Applications/MATLAB_R2011b.app/toolbox/matlab/ops/@int8/plus) % int8 method built-in (/Applications/MATLAB_R2011b.app/toolbox/matlab/ops/@uint64/plus) % uint64 method built-in (/Applications/MATLAB_R2011b.app/toolbox/matlab/ops/@uint32/plus) % uint32 method built-in (/Applications/MATLAB_R2011b.app/toolbox/matlab/ops/@uint16/plus) % uint16 method built-in (/Applications/MATLAB_R2011b.app/toolbox/matlab/ops/@uint8/plus) % uint8 method Probably the same applies to the other functions (minus, min, max, ...) somehow we should find a trick such that the fieldtrip @uint64 object is added to the path when needed (old matlab versions) but not on newer versions. TODO: - check whether all functions are now in standard matlab - check matlab versions to see how far back it should go - think of something with ft_defaults to "addpath" it conditionally on the matlab version
Robert Oostenveld - 2013-01-23 16:09:42 +0100
with the uint64 object everything still works fine on later matlab versions, so there is nothing that really should be fixed. If people prefer to use the built-in version, they can delete the fileio/@uint64 directory.
Robert Oostenveld - 2013-04-23 12:06:02 +0200
closed various bugs