Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Ly <[email protected]>
  • Loading branch information
stephprince and rly authored Dec 23, 2024
1 parent 4edc013 commit 419d685
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def __call__(self, filename):
'nwbwidgets': ("https://nwb-widgets.readthedocs.io/en/latest/", None),
'nwb-overview': ("https://nwb-overview.readthedocs.io/en/latest/", None),
'zarr': ("https://zarr.readthedocs.io/en/stable/", None),
'hdmf-zarr': ("https://hdmf-zarr.readthedocs.io/en/dev/", None),
'hdmf-zarr': ("https://hdmf-zarr.readthedocs.io/en/stable/", None),
'numcodecs': ("https://numcodecs.readthedocs.io/en/latest/", None),
}

Expand All @@ -161,7 +161,7 @@ def __call__(self, filename):
'hdmf-docs': ('https://hdmf.readthedocs.io/en/stable/%s', '%s'),
'dandi': ('https://www.dandiarchive.org/%s', '%s'),
"nwbinspector": ("https://nwbinspector.readthedocs.io/en/dev/%s", "%s"),
'hdmf-zarr': ('https://hdmf-zarr.readthedocs.io/en/dev/%s', '%s'),
'hdmf-zarr': ('https://hdmf-zarr.readthedocs.io/en/stable/%s', '%s'),
}

nitpicky = True
Expand Down
11 changes: 7 additions & 4 deletions src/pynwb/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ class NWBFile(MultiContainerInterface, HERDManager):
'doc': 'the ElectrodeGroups that belong to this NWBFile', 'default': None},
{'name': 'ic_electrodes', 'type': (list, tuple),
'doc': 'DEPRECATED use icephys_electrodes parameter instead. '
'IntracellularElectrodes that belong to this NWBFile', 'default': None},
'IntracellularElectrodes that belong to this NWBFile', 'default': None}, # TODO remove this arg in PyNWB 4.0
{'name': 'sweep_table', 'type': SweepTable,
'doc': '[DEPRECATED] Use IntracellularRecordingsTable instead. '
'The SweepTable that belong to this NWBFile', 'default': None},
Expand Down Expand Up @@ -492,7 +492,8 @@ def __init__(self, **kwargs):
icephys_electrodes = args_to_set['icephys_electrodes']
ic_electrodes = args_to_set['ic_electrodes']
if icephys_electrodes is None and ic_electrodes is not None:
self._error_on_new_pass_on_construct(error_msg=("Use of the ic_electrodes parameter is deprecated. "
self._error_on_new_pass_on_construct(error_msg=("Use of the ic_electrodes parameter is deprecated "
"and will be removed in PyNWB 4.0. "
"Use the icephys_electrodes parameter instead"))
args_to_set['icephys_electrodes'] = ic_electrodes
args_to_set.pop('ic_electrodes') # do not set this arg
Expand Down Expand Up @@ -568,7 +569,8 @@ def icephys_filtering(self):
@icephys_filtering.setter
def icephys_filtering(self, val):
if val is not None:
self._error_on_new_warn_on_construct("Use of icephys_filtering is deprecated. "
self._error_on_new_warn_on_construct("Use of icephys_filtering is deprecated "
"and will be removed in PyNWB 4.0. "
"Use the IntracellularElectrode.filtering field instead")
self.fields['icephys_filtering'] = val

Expand Down Expand Up @@ -1013,11 +1015,12 @@ def get_icephys_meta_parent_table(self):
{'name': 'notes', 'type': str,
'doc': ('[DEPRECATED] Notes to add to the data. '
'Only used when passing in numpy.ndarray, list, or tuple. This argument is not recommended. '
'Use the `description` argument instead.'),
'Use the `description` argument instead.'), # TODO remove this arg in PyNWB 4.0
'default': None},
{'name': 'table_description', 'type': str,
'doc': ('[DEPRECATED] Description for the internal DynamicTable used to store a pandas.DataFrame. This '
'argument is not recommended. Use the `description` argument instead.'),
# TODO remove this arg in PyNWB 4.0
'default': ''},
{'name': 'description', 'type': str,
'doc': ('Description of the data. Required only when passing in a scalar, numpy.ndarray, '
Expand Down

0 comments on commit 419d685

Please sign in to comment.