MCPcopy
hub / github.com/mne-tools/mne-python / _sort

Method _sort

mne/annotations.py:1278–1285  ·  view source on GitHub ↗

Sort in place.

(self)

Source from the content-addressed store, hash-verified

1276 del self.hed_string[i]
1277
1278 def _sort(self):
1279 """Sort in place."""
1280 order = super()._sort()
1281 self.hed_string._objs = [self.hed_string._objs[i] for i in order]
1282 for i in order:
1283 self.hed_string.__setitem__(
1284 i, self.hed_string._objs[i].get_original_hed_string()
1285 )
1286
1287 @verbose
1288 def crop(

Callers

nothing calls this directly

Calls 2

_sortMethod · 0.45
__setitem__Method · 0.45

Tested by

no test coverage detected