SAND-Lab / MEA-NAP

MEA-NAP. A streamlined diagnostic and analytic tool for data obtained using microelectrode arrays.
GNU General Public License v3.0
12 stars 6 forks source link

Catching unsupported wavelet names in spike detection step #12

Closed Timothysit closed 2 years ago

Timothysit commented 2 years ago

Currently, the try/catch block starting from line 138 of detectSpikesCWT.m here prints out 'Spike detection failed for some reason...' if the wavelet specified is not a valid wavelet name supported by Matlab, it will be good to specify this type of error and more generally make this try/catch more specific / eliminate it entirely if possible.

Timothysit commented 2 years ago

Try/catch in spike detection is now removed (see 6276bf3f83237b72d36d16e0cd5a528ab78308f6), and I now print out the available wavelets if the user specifies an invalid one (see 94f6830ab14e812c166c8dba974df655640e4d81)

Example image