Skip to content
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

Attribute already exists error #4

Open
nmarkowitz opened this issue Mar 23, 2021 · 0 comments
Open

Attribute already exists error #4

nmarkowitz opened this issue Mar 23, 2021 · 0 comments

Comments

@nmarkowitz
Copy link

Hi,

This is isn't a huge issue but this error gets printed when I read in a file that contains an AnnotatedEventsTable object. For example:

fname = 'Sample_VisLoc.nwb'
io = NWBHDF5IO(fname, 'r',load_namespaces=True)

/anaconda3/envs/ieeg/lib/python3.7/site-packages/hdmf/spec/namespace.py:470: UserWarning: ignoring namespace 'hdmf-common' because it already exists
  warn("ignoring namespace '%s' because it already exists" % ns['name'])
/anaconda3/envs/ieeg/lib/python3.7/site-packages/hdmf/spec/namespace.py:470: UserWarning: ignoring namespace 'core' because it already exists
  warn("ignoring namespace '%s' because it already exists" % ns['name'])
/anaconda3/envs/ieeg/lib/python3.7/site-packages/hdmf/common/table.py:410: UserWarning: An attribute 'event_times_index' already exists on AnnotatedEventsTable 'Events' so this column cannot be accessed as an attribute, e.g., table.event_times_index; it can only be accessed using other methods, e.g., table['event_times_index'].
  warn(msg)
/anaconda3/envs/ieeg/lib/python3.7/site-packages/hdmf/common/table.py:410: UserWarning: An attribute 'label' already exists on AnnotatedEventsTable 'Events' so this column cannot be accessed as an attribute, e.g., table.label; it can only be accessed using other methods, e.g., table['label'].
  warn(msg)
/anaconda3/envs/ieeg/lib/python3.7/site-packages/hdmf/common/table.py:410: UserWarning: An attribute 'event_description' already exists on AnnotatedEventsTable 'Events' so this column cannot be accessed as an attribute, e.g., table.event_description; it can only be accessed using other methods, e.g., table['event_description'].
  warn(msg)

I can still access all of my data but I'm unsure why this error is occurring and if anything incorrect is present. Running through pynwb validator it seems the file is fine. Any thoughts? Thank you for all the help and for this extension.

Noah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant