-
Notifications
You must be signed in to change notification settings - Fork 0
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
Validation error in example file #57
Comments
Does this mean we currently do not allow DynamicTables with just the |
Correct. from pynwb import NWBFile, NWBHDF5IO, validate
from pynwb.core import DynamicTable
from datetime import datetime
nwbfile = NWBFile(session_description='ADDME',
identifier='ADDME',
session_start_time=datetime.now().astimezone())
table = DynamicTable(name='name',
description='description')
table.add_row(id=1)
nwbfile.add_acquisition(table)
filename = 'nwbfile.nwb'
with NWBHDF5IO(filename, 'w') as io:
io.write(nwbfile)
with NWBHDF5IO(filename, 'r') as io:
validate(io)
nwbfile = io.read() results in the error |
Also note that if no row is added, the table is not even written to disk. |
although that seems to be just an issue with the
|
After resolving the validation error in #21 , another validation error appears: the 'colnames' attribute of
/general/intracellular_ephys/intracellular_recordings/
is empty which raises anIndexError
.I raised this issue in hdmf-dev/hdmf#317
The text was updated successfully, but these errors were encountered: