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

removed call_docval_func #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/pynwb/ndx_events/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pynwb import register_class
from pynwb.core import NWBDataInterface, DynamicTable
from hdmf.utils import docval, getargs, popargs, call_docval_func, get_docval
from hdmf.utils import docval, getargs, popargs, get_docval


@register_class('Events', 'ndx-events')
Expand All @@ -28,7 +28,7 @@ class Events(NWBDataInterface):
'default': None})
def __init__(self, **kwargs):
description, timestamps, resolution = popargs('description', 'timestamps', 'resolution', kwargs)
call_docval_func(super().__init__, kwargs)
super().__init__(**kwargs)
self.description = description
self.timestamps = timestamps
self.resolution = resolution
Expand Down Expand Up @@ -72,7 +72,7 @@ class LabeledEvents(Events):
def __init__(self, **kwargs):
timestamps = getargs('timestamps', kwargs)
data, labels = popargs('data', 'labels', kwargs)
call_docval_func(super().__init__, kwargs)
super().__init__(**kwargs)
if len(timestamps) != len(data):
raise ValueError('Timestamps and data must have the same length: %d != %d'
% (len(timestamps), len(data)))
Expand Down Expand Up @@ -152,7 +152,7 @@ class AnnotatedEventsTable(DynamicTable):
*get_docval(DynamicTable.__init__, 'id', 'columns', 'colnames'))
def __init__(self, **kwargs):
resolution = popargs('resolution', kwargs)
call_docval_func(super().__init__, kwargs)
super().__init__(**kwargs)
self.resolution = resolution

@docval({'name': 'label', 'type': str, 'doc': 'Label for each event type.'},
Expand Down