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

SOFA saving failed #5

Open
jdemuynke opened this issue Nov 14, 2019 · 2 comments
Open

SOFA saving failed #5

jdemuynke opened this issue Nov 14, 2019 · 2 comments

Comments

@jdemuynke
Copy link

ScanIR_v2.m fails to save the HRTFs measurement as a SOFA file, even though the SOFA API directory is present in the ScanIR_v2 parent folder.

Here is the error message I get:

Warning: ATTENTION: SOFA saving feature failed!
You need to download the SOFA API for MATLAB/Octave from:SOFA website.
Please add the directory to the ScanIR_v2 parent folder to use the SOFA
functions

In ScanIR_v2>saveButton_Callback (line 464)
In gui_mainfcn (line 95)
In ScanIR_v2 (line 51)
In matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)ScanIR_v2('saveButton_Callback',hObject,eventdata,guidata(hObject))
Warning: File 'ScanIR_AutoSave.mat' not found.
In ScanIR_v2>saveButton_Callback (line 471)
In gui_mainfcn (line 95)
In ScanIR_v2 (line 51)
In matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)ScanIR_v2('saveButton_Callback',hObject,eventdata,guidata(hObject))

@afgenovese
Copy link
Member

This is odd - which matlab version and OS are you using?
Is the api folder added to the path by the code? If not try to add the api folder to path manually

@jdemuynke
Copy link
Author

I'm using Matlab R2018A and mac OS High Sierra 10.13.6

The SOFA API folder was already added to my Matlab path. However, I've tried to add the path of other SOFA API versions, including path of the SOFA API included in the ScanIR-master folder, but the issue is still present.

I've run ScanIR_v2.m in debug mode and monitored the 'error' when executing the snippet in the 'try' section at lines 459-462, which explains why the code enter the 'catch' section.

identifier: 'MATLAB:NonScalarInput'
message: 'Size inputs must be scalar.'
More info in the .mat file attached

exception_ScanIR_v2.mat.zip

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