[Bug]: nwbfile.add_trial_column does not allow extra kwargs #1860
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?
NWBFile.add_trial_column
is a shortcut fornwbfile.trials.add_column
.nwbfile.trials.add_column
allows extra keyword args to be passed, which are then passed to the constructor ofcol_cls
. This is useful when the custom VectorData subclass has additional arguments.NWBFile.add_trial_column
does not allow extra keyword args to be passed, so certain custom VectorData subclasses cannot be initialized.Steps to Reproduce
Traceback
Operating System
macOS
Python Executable
Conda
Python Version
lower version (unsupported)
Package Versions
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: