-
Notifications
You must be signed in to change notification settings - Fork 266
Types from header #879
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
Types from header #879
Conversation
Allows full normal testing to run, using the 4.0.2 data only to test the parsing of ncs recording from the header information.
|
Hello @PeterNSteinmetz! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-11-06 21:42:25 UTC |
|
Many thanks for this. A quick comment on the "indices/indexes" question. Having grown up in the UK, I prefer "indices" in general. However, we decided to use "indexes" in Neo because it is less confusing for non-native English speakers and more familiar to North Americans. It's fine to use "indices" for internal variables, but any arguments that are exposed to Neo users as part of the API should be "indexes". |
So how about the case of the argument to _get_analogsignal_chunk ? That is nominally a private method but I imagine a lot of people use that. Should those also be 'indexes' ? |
|
circleci is complaining that the test is failing because trying to download the file https://web.gin.g-node.org/NeuralEnsemble/ephy_testing_data/raw/master/neuralynx/Cheetah_v4.0.2/original_data/CSC14_trunc.Ncs is returning a 404 error. Yet that file is available and downloadable in a browser or if I pull it using git from the gin-g repository. What is going wrong there? |
|
Hi @PeterNSteinmetz, I restarted the tests and the files could now be successfully downloaded from gin. It seems this was a temporary issue with gin. The tests are succeeding now. |
Yes, I think we should stay consistently with |
|
I will merge my NlxFixes branch into this PR, the TypesFromHeader branch, thereby fixing the channel_indexes question, once PR #851 is merged onto main. I want to leave NlxFixes open for now until that happens. |
|
#851 is now merged in master and here. Are you planning to address the todos introduced in this PR also here or is this PR ready for review / merge from your side? |
|
That is it for this branch. Please merge into master. |
|
This is ready for merging. |
JuliaSprenger
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few naming issues I found, but otherwise the PR looks ready to merge to me. Thanks!
|
I think tests are still failing on hdf5io . |
|
OK, just merged NeuralEnsemble:master back into my TypeFromHeader branch. Let's see how this goes. |
Factors out parsing of information from header of file. Add determination of recording type from header information.
Changes indexes to indices in argument names again -- will need determination of acceptability of this spelling change for files being worked on only. See https://grammarist.com/usage/indexes-indices/ for discussion of usage, particularly in technical contexts.
This factorization is in preparation for larger changes to accommodate early file styles with different header structures. Provided here as a smaller chunk in order to avoid very much larger changes which are harder to check and understand.