Skip to content

Commit

Permalink
deprecate Data.set_dataio()
Browse files Browse the repository at this point in the history
  • Loading branch information
bendichter committed Dec 12, 2023
1 parent 1d05e39 commit eb59d65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hdmf/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,11 @@ def set_dataio(self, **kwargs):
"""
Apply DataIO object to the data held by this Data object
"""
warn(
"Data.set_dataio() is deprecated. Please use Data.set_data_io() instead.",
DeprecationWarning,
stacklevel=2,
)
dataio = getargs('dataio', kwargs)
dataio.data = self.__data
self.__data = dataio
Expand Down

0 comments on commit eb59d65

Please sign in to comment.