-
Notifications
You must be signed in to change notification settings - Fork 84
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
[Bug]: Writing ElectrodeGroup position saves incorrectly modified data to file #1768
Comments
Thanks for reporting this bug. Issue 1: Specify
What this means is that each element in the The reason you are seeing values being "duplicated" is because position is created in the file in accordance with the schema as a compound dataset with a dtype consisting of three floats ( Issue 2: How As you mentioned, the error check in |
#1770 should fix the issue. If you modify the example code to create the ElectrodeGroup as follows:
then this should work now with the fix on #1770. |
Perfect, thank you for the explanation! |
What happened?
There seem to be some inconsistencies in writing ElectrodeGroup position to a file depending on the input type:
np.ndarray
inputs, the__init__
function checks whether position was provided usingif position
instead ofif position is not None
, which leads to the usualThe truth value of an array with more than one element is ambiguous
errorposition
data seems to be duplicated into an array of tuples like[(x, y, z), (x, y, z), (x, y, z)]
position
data seems to be duplicated into a array of tuples like[(x, x, x), (y, y, y), (z, z, z)]
These last two things only happen on the write/read round trip, not before writing the file.
Steps to Reproduce
Traceback
Operating System
Linux
Python Executable
Python
Python Version
3.10
Package Versions
issue_environment.txt
Code of Conduct
The text was updated successfully, but these errors were encountered: