Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor bug in fletcher16.m #34

Open
LSWSL opened this issue Dec 23, 2022 · 2 comments
Open

Minor bug in fletcher16.m #34

LSWSL opened this issue Dec 23, 2022 · 2 comments

Comments

@LSWSL
Copy link

LSWSL commented Dec 23, 2022

Dear Dr. Allefeld,
When the ‘date’ in 'spm.mat' contains chinese characters(it is due to the system's language setting), Funcation 'Checksum' will prompt the UID is ‘invalid data’.
I removed the call to the ‘date’ by modifying the code in cvManovaSearchlight.m(line 56,57):

    uid = gencode({‘SPM.mat’ , ...
    slRadius, Cs, permute, lambda});

after that it runs smoothly, maybe there is a better way to solve the bug.
Thanks sincerely for your work.

best
Liu

@LSWSL LSWSL changed the title issus in fletcher16.m Minor bug in fletcher16.m Dec 23, 2022
@allefeld
Copy link
Owner

allefeld commented Mar 16, 2023

Sorry for the extremely late answer!

The problem is, I have no idea how to fix this. Theoretically, getfield(dir('SPM.mat'), 'date') should return a regular Matlab string, which is then translated into numbers by data = double(data(:)); in fletcher16. The only idea I have is that maybe the SPM.mat file was created on a system with a different locale than that on which cvmanova is run, leading to a string with invalid data.

If you'd like me to look into this further, you could send me the SPM.mat file, e.g. through a filesharing service.

Also, could you copy & paste the exact and complete error message?
And which version of Matlab & SPM do you use?

@allefeld
Copy link
Owner

@LSWSL could you please respond to my last comment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants