yasa.Hypnogram.mapping#

property Hypnogram.mapping[source]#

A dictionary with the mapping from string to integer values.

Can be overridden by direct assignment, e.g. hyp.mapping = {"WAKE": 0, "SLEEP": 1}. When setting a custom mapping, ART and UNS are automatically added with values -1 and -2 respectively, if they are not already present.