-
Notifications
You must be signed in to change notification settings - Fork 28
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
preprocess lf data? #207
Comments
I've been modifying some of the core functions to do this, but I think from your error I think the filt_key you want to use is "lowpass" not "lf" (edit: actually, I'm not sure if this is true, different functions seem to expect different filt_keys, which would be nice to be made more consistant, but your issue is stemming from reading the metadata, so I don't think my code below is helpful. If I had to guess, your .meta files from SpikeGLX are missing or not where they are expected to be?). Maybe not useful: If it is useful, I wrote (basically a stripped down version of
Usage (load, offset correct, then filter):
|
Is it possible to use preprocess_binary_file to preprocess lf files? I attempted it (below, and also with f_high=None). Is this possible and I am not calling it correctly, or is it impossible currently?
filtered_fname = preprocess_binary_file(dp, filt_key='lf', fname=None, target_dp=None, move_orig_data=True, median_subtract=False, f_low=250, f_high=0, order=3, verbose=True)
Preprocessing D:\MarieQD\LFP\1657_220729_g1_t0.imec0.lf.bin...
- filtering in time (between 250 and 0 Hz) forward:True, backward:False.
Traceback (most recent call last):
File "", line 1, in
File "d:\marieqd\npyx\neuropyxels\npyx\inout.py", line 760, in preprocess_binary_file
meta = read_metadata(dp)
File "d:\marieqd\npyx\neuropyxels\npyx\inout.py", line 47, in read_metadata
meta = metadata(dp)
File "d:\marieqd\npyx\neuropyxels\npyx\inout.py", line 199, in metadata
if 'imProbeOpt' in meta_glx["highpass"].keys(): # 3A
KeyError: 'highpass'
The text was updated successfully, but these errors were encountered: