Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Fix bad validation check for postion in ElectrodeGroup.__init__ #1770
Fix bad validation check for postion in ElectrodeGroup.__init__ #1770
Changes from 3 commits
2beae7c
e031cd9
dc8c1c4
60844f2
826c1d4
a214ad6
5272bc3
169b53d
f4ff605
ecd7de2
a21f672
067a618
c7962f7
6cdd381
4ec3b93
aecfbc6
dd5da88
33110b7
33d34d0
4837aba
3b2bf9f
5419275
f915e62
b11ff87
3fe93eb
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check failure on line 43 in src/pynwb/ecephys.py
GitHub Actions / Check for spelling errors
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.
Checking only the first element here seems to imply that this value should only be a single tuple of length 2 or 3 and that we would not expect more than one to be passed in the list input
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.
We could iterate through all elements. I believe I just wanted to avoid checking all elements to keep runtime short in case there are a lot of values .
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.
I updated this to iterate and check the length of all the position elements
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.
One question - why is this a list at all? Is there a case where we would have multiple tuples in this list? What would that represent?
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.
I also wasn't sure what the use case of the list would be - I added a test case with multiple tuples for now but not sure if that is necessary?