python-neo icon indicating copy to clipboard operation
python-neo copied to clipboard

Direct assignment of multiple '.ncs' files in neo.io.NeuralynxIO(dirname=session_data)

Open NxNiki opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. I have Neuralynx data with micro (32k sampling rate) and macro (2k sampling rate) in the same folder. Current NeuralynxIO only supports assign dirname as a directory or filename as a single file. Is it possible to allow users define their files to be processed as a List of strings?

Describe the solution you'd like A clear and concise description of what you want to happen.

It seems filenames here can be directly referenced as an argument.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

NxNiki avatar Mar 19 '24 02:03 NxNiki

Hey @NxNiki,

You can use the exclude_filename which allows you to search for some files, but not others. This is the opposite of what you want, but can be used to obtain your desired result. In this case you would give the dirname, which will scan the directory and then the files you DON'T want should be included as a list in exclude_filename. Let me know if that works for you.

zm711 avatar Mar 19 '24 11:03 zm711

Thank you for your answer. I think it would be better to allow for user-defined files which is more intuitive and flexible. I would like to create a PR to add this feature. Do you have any suggestions before I work on it?

NxNiki avatar Mar 19 '24 17:03 NxNiki

@samuelgarcia has worked on neuralynx most recently so I would defer to him to comment on adding this feature :)

I have no problem with you making the PR, but I think Sam would be the one to review it in the end.

zm711 avatar Mar 19 '24 17:03 zm711

Closed by #1440.

zm711 avatar Jul 24 '24 19:07 zm711