| Date | Tue, 28 Jun 2022 14:10:50 -0400 | From | Steven Rostedt <> | Subject | Re: [PATCH V4 06/20] tools/rv: Add dot2c |
| |
On Thu, 16 Jun 2022 10:44:48 +0200 Daniel Bristot de Oliveira <bristot@kernel.org> 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
|