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

error when I try to load calls #57

Closed
eustond opened this issue Sep 6, 2019 · 7 comments
Closed

error when I try to load calls #57

eustond opened this issue Sep 6, 2019 · 7 comments

Comments

@eustond
Copy link

eustond commented Sep 6, 2019

name: Bug report
about: Create a report to help us improve


Describe the bug
DeepSqueak 2.6.1. throws an error when I try to load Calls or scroll through identified calls

To Reproduce
Launched DeepSqueak from matlab command line
Select Mouse Call_Network_V2.mat for Neural Network
Select default audio file: Example Mouse Recording.flac
Press "Detect Calls" button (this complete's successfully)
click "Load Calls" using default option (most recently created file)
DeepSqueak window shows one call, as expected, but shows the following error message (program will not scroll through any other calls at this point):
"DeepSqueak version 2.6.1
601 Calls found in: Example Mouse Recording
The logical indices contain a true value outside of the array bounds.

Error in CalculateStats (line 37)
stats.ridgeFreq = ridgeFreq(greaterthannoise);

Error in update_fig (line 23)
stats =
CalculateStats(I,windowsize,noverlap,nfft,rate,box,handles.data.settings.EntropyThreshold,handles.data.settings.AmplitudeThreshold);

Error in loadcalls_Callback (line 89)
update_fig(hObject, eventdata, handles);

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in DeepSqueak (line 30)
gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)DeepSqueak('loadcalls_Callback',hObject,eventdata,guidata(hObject))

Error while evaluating UIControl Callback."

Expected behavior
I just expected to be able to flip through all the calls, as program is intended to function

Additional context
Windows 10, MATLAB Version: 9.6.0.1174912 (R2019a) Update 5
DeepSqueak version downloaded from GitHub on Sept 5, 2019

@DrCoffey
Copy link
Owner

DrCoffey commented Sep 9, 2019

Hey David, I can't seem to re-create this error. Can you scroll through the detection files included with DeepSqueak, or through any other file? Also, could you send me offending .mat detection file so I can take a look?

Thanks,
Kevin

@eustond
Copy link
Author

eustond commented Sep 9, 2019 via email

@eustond
Copy link
Author

eustond commented Sep 9, 2019

Solved. Issue was that I had other functions that I had written which had the same name as some of those in the DeepSqueak package. DeepSqueak was using my versions of these functions and of course they behaved differently and lead to crash. I reverted matlab path to default and re-ran DeepSqueak and now it runs fine.
Thanks to Kevin for looking into this for me.

@eustond eustond closed this as completed Sep 9, 2019
@DrCoffey
Copy link
Owner

DrCoffey commented Sep 9, 2019 via email

@eustond
Copy link
Author

eustond commented Sep 9, 2019 via email

@DrCoffey
Copy link
Owner

DrCoffey commented Sep 9, 2019

That's a good suggestion! The only reason I can think of to keep the "savepath" is that you could type "DeepSqueak" into the command line without navigating to the folder first. Russell and I will think it over.

@eustond
Copy link
Author

eustond commented Sep 9, 2019 via email

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