[fixes #193] fixed bug introduced by component mapping

fixes a bug which was introduced in revision b8d680f54f
This commit is contained in:
Sebastian Wehling-Benatelli 2016-03-29 11:40:16 +02:00
parent 7b22bce2b0
commit fef1a95391

View File

@ -99,7 +99,8 @@ class MPLWidget(FigureCanvas):
if mapping: if mapping:
comp = channel[-1] comp = channel[-1]
n = COMPONENTS_MAPPING[comp] 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) msg = 'plotting %s channel of station %s' % (channel, station)
print(msg) print(msg)
stime = trace.stats.starttime - wfstart stime = trace.stats.starttime - wfstart