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,ARTandUNSare automatically added with values-1and-2respectively, if they are not already present.