Skip to content

Commit

Permalink
Update icephys.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 authored Mar 11, 2024
1 parent 8a62ae1 commit ac154b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pynwb/icephys.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,15 +491,15 @@ def __init__(self, **kwargs):
if required_dynamic_table_missing:
if required_dynamic_table_given[2] < 0:
dynamic_table_arg.append(IntracellularResponsesTable)
if not dynamic_table_arg[-1].name in categories_arg:
if dynamic_table_arg[-1].name not in categories_arg:
categories_arg.insert(0, dynamic_table_arg[-1].name)
if required_dynamic_table_given[1] < 0:
dynamic_table_arg.append(IntracellularStimuliTable())
if not dynamic_table_arg[-1].name in categories_arg:
if dynamic_table_arg[-1].name not in categories_arg:
categories_arg.insert(0, dynamic_table_arg[-1].name)
if required_dynamic_table_given[0] < 0:
dynamic_table_arg.append(IntracellularElectrodesTable())
if not dynamic_table_arg[-1].name in categories_arg:
if dynamic_table_arg[-1].name not in categories_arg:
categories_arg.insert(0, dynamic_table_arg[-1].name)
kwargs['category_tables'] = dynamic_table_arg
kwargs['categories'] = categories_arg
Expand Down

0 comments on commit ac154b8

Please sign in to comment.