import dascore as dc
spool = dc.get_example_spool("diverse_das")
# everything except the patches tagged 'some_tag'
rest = spool.unselect(tag='some_tag')
assert len(rest) + len(spool.select(tag='some_tag')) == len(spool)unselect
unselect(
self ,
_attrs: collections.abc.Mapping[collections.abc.Mapping[str, Any], str, collections.abc.Iterable[str], None] = None,
_coords: collections.abc.Mapping[collections.abc.Mapping[str, Any], str, collections.abc.Iterable[str], None] = None,
**kwargs ,
)-> ‘Self’
Return the spool without the patches a selection would keep.
Keywords have the same meaning as in select, but matched content is removed. Patch-coordinate selectors are refused because their complement may split patches. Inventory coordinates along the fiber are accepted and may split patches into unmatched channel ranges. Calling without selectors, or with only no-op selectors (None, ...), raises.
Parameters
| Parameter | Description |
|---|---|
| _attrs |
Attribute selections, in the formsselect accepts.
|
| _coords |
The patches’ own coordinates only to say they are refused; a coordinate an attached inventory defines along the fiber is accepted and chooses channels. See above. |
| **kwargs | The selection whose matches are removed. |