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

Function _sort_keys

mne/utils/numerics.py:740–745  ·  view source on GitHub ↗

Sort and return keys of dict.

(x)

Source from the content-addressed store, hash-verified

738
739
740def _sort_keys(x):
741 """Sort and return keys of dict."""
742 keys = list(x.keys()) # note: not thread-safe
743 idx = np.argsort([str(k) for k in keys])
744 keys = [keys[ii] for ii in idx]
745 return keys
746
747
748def _array_equal_nan(a, b, allclose=False):

Callers 2

object_hashFunction · 0.70
object_diffFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected