Skip to content

Commit

Permalink
Remove unneeded _update_xarray_metadata
Browse files Browse the repository at this point in the history
- remove unneeded call when data are provided to ChannelTS
- if self.ts is assigned, _update_xarray_metadata is called within
  the setter
  • Loading branch information
kkappler committed Nov 14, 2023
1 parent 484acb9 commit 64d8ebc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mth5/timeseries/channel_ts.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def __init__(
# input data
if data is not None:
self.ts = data
self._update_xarray_metadata()
else:
self._update_xarray_metadata()

for key in list(kwargs.keys()):
setattr(self, key, kwargs[key])
Expand Down

0 comments on commit 64d8ebc

Please sign in to comment.