Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions db/dbfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1347,4 +1347,8 @@ def get_rawfiles_for_taskentry(e, system_subfolders=None):
else:
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?

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.


return files