-
Notifications
You must be signed in to change notification settings - Fork 78
Closed
Labels
featureNew feature or requestNew feature or request
Description
Currently, the Adapter is implemented as a series of transforms.
It would be nice if indexing or slicing the Adapter would yield another valid Adapter, in the form of:
adapter = bf.Adapter().rename("x", "y").rename("y", "z").rename("z", "y").rename("y", "x")
rename_x_to_y = adapter[0]
rename_x_to_z = adapter[0:2]
assert isinstance(rename_x_to_y, bf.Adapter)We could also allow assigning an adapter to a slice then, in the form of:
adapter = ...
adapter[0:2] = bf.Adapter().rename("x", "z")Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request
Type
Projects
Status
Done