The labelling of bruxism events in the result of the burst_to_episode function seems to have a problem. Maybe the issue stems one step before in the classif_to_burst function. Maybe it is in the way we delt with the self.code attibute in the episode class (use binary operations instead of addditions?).
We should have 3 different encodings : one for tonic, phasic and mixed. The proposed encoding is 1=tonic, 10 = phasic and 11=mixed.
All in all, we have currently labels of more than 3 types, as we can see in the display of the result of burst_to_episode function
The labelling of bruxism events in the result of the burst_to_episode function seems to have a problem. Maybe the issue stems one step before in the classif_to_burst function. Maybe it is in the way we delt with the self.code attibute in the episode class (use binary operations instead of addditions?). We should have 3 different encodings : one for tonic, phasic and mixed. The proposed encoding is 1=tonic, 10 = phasic and 11=mixed. All in all, we have currently labels of more than 3 types, as we can see in the display of the result of burst_to_episode function