Skip to content

Commit

Permalink
clean up section warning
Browse files Browse the repository at this point in the history
  • Loading branch information
katduecker committed Oct 29, 2024
1 parent 1fc36a3 commit fd44180
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions hnn_core/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -1163,11 +1163,6 @@ def add_tonic_bias(self, *, cell_type=None, section=None,
multiple are specified with the `amplitude` keyword.
"""

if section is None:
warnings.warn("Section for tonic bias is not defined."
"Defaulting to 'soma'.",
DeprecationWarning, stacklevel=1)

# old functionality single cell type - amplitude
if cell_type is not None:
warnings.warn('cell_type argument will be deprecated and '
Expand Down Expand Up @@ -1697,7 +1692,7 @@ def _add_cell_type_bias(network: Network, amplitude: Union[float, dict],
if section is None:
warnings.warn("Section for tonic bias is not defined."
"Defaulting to 'soma'.",
UserWarning, stacklevel=1)
DeprecationWarning, stacklevel=1)
# error when section is defined that doesn't exist.
elif section not in sections:
raise ValueError(f'section must be an existing '
Expand Down

0 comments on commit fd44180

Please sign in to comment.