Closed d-chambers closed 4 months ago
Using PatchAttrs.update and passing a CoordinateManager instance doesn't update the dims attribute.
PatchAttrs.update
CoordinateManager
dims
import dascore as dc random_patch = dc.get_example_patch() attrs = random_patch.attrs new_patch = random_patch.rename_coords(distance="channel") new = attrs.update(coords=new_patch.coords) assert new.dim_tuple == new_patch.dims # this fails
Description
Using
PatchAttrs.update
and passing aCoordinateManager
instance doesn't update thedims
attribute.Example
Expected behavior
Versions