Remove sanitize_dtypes
redundancy in EchoData
methods
#1427
Labels
enhancement
This makes echopype better
Milestone
Currently
sanitize_dtypes
in__get_dataset
is called multiple times inEchoData
methods__getitem__
,__setitem
,__setattr__
. However, this operation should really only be used when actually setting values. The newxarray.DataTree
implementation distinguishes.to_dataset()
(returning aDataset
) and.dataset()
(returning aDatasetView
), so we can take advantage of this to remove this redundancy.See related discussions in #1419 (comment).
The text was updated successfully, but these errors were encountered: