Skip to content

Conversation

resatomo
Copy link
Collaborator

@resatomo resatomo commented Nov 7, 2024

for preprocessing neuropixels

@resatomo resatomo requested a review from leoscholl November 7, 2024 19:19
files[df.system.name] = filepath

params = e.task_params
if 'neuropixel_port1_site' in params:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in old data did you always have 'neuropixel_port1_site' or was it something else? maybe you could just check if 'neuropixel' is in e.features?


params = e.task_params
if 'neuropixel_port1_site' in params:
files['neuropixels'] = f'neuropixels/{str(e.date.date())}_Neuropixel_{e.subject.name}_te{e.id}'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm confused about this part; shouldn't the filename be stored in files['neuropixel'] anyway? why do you have to do this manual lookup?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to include a preproc function for neuropixels in proc_lfp function. and proc_lfp function requires files argument.

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

Successfully merging this pull request may close these issues.

3 participants