On Thu, 16 Jun 2022 10:44:48 +0200 Daniel Bristot de Oliveira <bristot@xxxxxxxxxx> wrote: > + def __create_matrix(self): > + # transform the array into a dictionary > + events = self.events > + states = self.states > + events_dict = {} > + states_dict = {} > + nr_event = 0 > + for event in events: > + events_dict[event] = nr_event > + nr_event += 1 > + > + nr_state = 0 > + for state in states: > + states_dict[state] = nr_state > + nr_state = nr_state + 1 > + Hmm, do you just like inconsistency? nr_event += 1 nr_state = nr_state + 1 ?? -- Steve