lkml.org 
[lkml]   [2022]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2022-06-28 20:12    [W:0.137 / U:0.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site