diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index a4f42063..73dcdca0 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -99,7 +99,8 @@ class MPLWidget(FigureCanvas): if mapping: comp = channel[-1] n = COMPONENTS_MAPPING[comp] - nmax = n if n > nmax else nmax + if n > nmax: + nmax = n msg = 'plotting %s channel of station %s' % (channel, station) print(msg) stime = trace.stats.starttime - wfstart