Skip to content

Commit

Permalink
Add allow_extra=True to NWBFile.add_x_column
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Mar 14, 2024
1 parent 65b2a7d commit 953290d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pynwb/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def __check_epochs(self):
if self.epochs is None:
self.epochs = TimeIntervals(name='epochs', description='experimental epochs')

@docval(*get_docval(TimeIntervals.add_column))
@docval(*get_docval(TimeIntervals.add_column), allow_extra=True)
def add_epoch_column(self, **kwargs):
"""
Add a column to the epoch table.
Expand Down Expand Up @@ -645,7 +645,7 @@ def __check_electrodes(self):
if self.electrodes is None:
self.electrodes = ElectrodeTable()

@docval(*get_docval(DynamicTable.add_column))
@docval(*get_docval(DynamicTable.add_column), allow_extra=True)
def add_electrode_column(self, **kwargs):
"""
Add a column to the electrode table.
Expand Down Expand Up @@ -747,7 +747,7 @@ def __check_units(self):
if self.units is None:
self.units = Units(name='units', description='Autogenerated by NWBFile')

@docval(*get_docval(Units.add_column))
@docval(*get_docval(Units.add_column), allow_extra=True)
def add_unit_column(self, **kwargs):
"""
Add a column to the unit table.
Expand All @@ -770,7 +770,7 @@ def __check_trials(self):
if self.trials is None:
self.trials = TimeIntervals(name='trials', description='experimental trials')

@docval(*get_docval(DynamicTable.add_column))
@docval(*get_docval(DynamicTable.add_column), allow_extra=True)
def add_trial_column(self, **kwargs):
"""
Add a column to the trial table.
Expand Down Expand Up @@ -798,7 +798,7 @@ def __check_invalid_times(self):
description='time intervals to be removed from analysis'
)

@docval(*get_docval(DynamicTable.add_column))
@docval(*get_docval(DynamicTable.add_column), allow_extra=True)
def add_invalid_times_column(self, **kwargs):
"""
Add a column to the invalid times table.
Expand Down

0 comments on commit 953290d

Please sign in to comment.