From 3f545f2fe9ad52fb98bcc7910ea7b737da79d7b6 Mon Sep 17 00:00:00 2001 From: Azadeh Date: Wed, 21 Feb 2024 21:15:11 +0000 Subject: [PATCH] Fixed pycodestyle violation already in develop --- scripts/plot_proftrace.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/plot_proftrace.py b/scripts/plot_proftrace.py index a601500..212d40c 100644 --- a/scripts/plot_proftrace.py +++ b/scripts/plot_proftrace.py @@ -297,13 +297,13 @@ def collect_statistics(setdict): # entries in a list # if they are not a list, assert them as a list it = sd['it'] - it = [it] if type(it) != list else it + it = [it] if type(it) is not list else it use = sd['use'] - use = [use] if type(use) != list else use + use = [use] if type(use) is not list else use typ = sd['typ'] - typ = [typ] if type(typ) != list else typ + typ = [typ] if type(typ) is not list else typ styp = sd['styp'] - styp = [styp] if type(styp) != list else styp + styp = [styp] if type(styp) is not list else styp # extract variable from gdas stat = gdas.extract(var) # t, uv, q, etc. # date it obs use