[Bug]: PatchClampSeries gain is optional in the schema but required in pynwb #1971
Open
3 tasks done
Labels
category: bug
errors in the code or code behavior
priority: low
alternative solution already working and/or relevant to only specific user(s)
What happened?
I believe the schema indicates that
PatchClampSeries.gain
is an optional dataset with a quantity of 0 or 1:https://github.com/NeurodataWithoutBorders/nwb-schema/blob/35889d36dfa088ec4a3614fa0350c02ced4a068c/core/nwb.icephys.yaml#L28-L31
while
pynwb
requires that gain is provided as an input to create aPatchClampSeries
object:pynwb/src/pynwb/icephys.py
Lines 109 to 112 in e938202
As a result, nwb files created without PatchClampSeries
gain
specified cannot be read with pynwb.Steps to Reproduce
Create a file in matnwb without specifying the gain for VoltageClampSeries, then try reading the file in with pynwb
Traceback
Operating System
macOS
Python Executable
Conda
Python Version
3.11
Package Versions
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: