buzsakilab / buzcode

Code for internal lab sharing - polishing has started but is by no means complete
http://www.buzsakilab.com/
GNU General Public License v3.0
119 stars 127 forks source link

Question about LFP extraction - wierd comment in bz_LFPfromDat #423

Open ckemere opened 5 months ago

ckemere commented 5 months ago

In the code I see

ntbuff = 525;  %default filter size in iosr toolbox

but in the toolbox, I see

    %% assign defaults

    if isempty(N)
        N = 1025;
    end

While it's not corrupting the data, I'm not sure why ntbuff is not set to 512 (or 513 if one is conservative)?

brendonw1 commented 5 months ago

Hey Caleb, I'm not sure why this was changed Feel free to alter it in your code if that works for you

Brendon Watson, MD-PhD Assistant Professor in Psychiatry, Bioinformatics and Biomedical Engineering Biomedical Sciences Research Building, Room 5059 University of Michigan 109 Zina Pitcher Place Ann Arbor, MI 48109-5720 Lab Website: http://watsonneurolab.org Clinical phone: 734-764-0231

On Thu, Feb 8, 2024 at 5:07 PM ckemere @.***> wrote:

In the code I see

ntbuff = 525; %default filter size in iosr toolbox

but in the toolbox, I see

%% assign defaults

if isempty(N)
    N = 1025;
end

While it's not corrupting the data, I'm not sure why ntbuff is not set to 512 (or 513 if one is conservative)?

— Reply to this email directly, view it on GitHub https://github.com/buzsakilab/buzcode/issues/423, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA26WTPOPNGR2GIIZREETALYSVEAZAVCNFSM6AAAAABDAQBCCOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZDMMJUG4YDSNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>