Skip to content

Commit

Permalink
Update ecephys.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Sep 20, 2024
1 parent 2d74acb commit 80753fa
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/pynwb/ecephys.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def __init__(self, **kwargs):
@register_class('EventWaveform', CORE_NAMESPACE)
class EventWaveform(MultiContainerInterface):
"""
DEPRECATED. Spike data for spike events detected in raw data
DEPRECATED as of NWB 2.8.0 and PyNWB 3.0.0.
Spike data for spike events detected in raw data
stored in this NWBFile, or events detect at acquisition
"""

Expand All @@ -174,10 +175,11 @@ class EventWaveform(MultiContainerInterface):
}

def __init__(self, **kwargs):
raise ValueError(
"This neurodata type is deprecated. If you are interested in using it, "
"please create an issue on https://github.com/NeurodataWithoutBorders/nwb-schema/issues."
)
if not self._in_construct_mode:
raise ValueError(
"The EventWaveform neurodata type is deprecated. If you are interested in using it, "
"please create an issue on https://github.com/NeurodataWithoutBorders/nwb-schema/issues."
)


@register_class('Clustering', CORE_NAMESPACE)
Expand Down

0 comments on commit 80753fa

Please sign in to comment.