diff --git a/scripts/plot_proftrace.py b/scripts/plot_proftrace.py index cc981e0..89a63e8 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 not isinstance(it, list) else it use = sd['use'] - use = [use] if type(use) != list else use + use = [use] if not isinstance(use, list) else use typ = sd['typ'] - typ = [typ] if type(typ) != list else typ + typ = [typ] if not isinstance(typ, list) else typ styp = sd['styp'] - styp = [styp] if type(styp) != list else styp + styp = [styp] if not isinstance(styp, list) else styp # extract variable from gdas stat = gdas.extract(var) # t, uv, q, etc. # date it obs use